From c35794e8c77f715f102cd3ae7a98298be1f21618 Mon Sep 17 00:00:00 2001 From: danikov Date: Tue, 7 Feb 2012 11:15:39 +0000 Subject: [PATCH] fix Org to use Links --- .../vcloud/director/v1_5/domain/OrgList.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/labs/vcloud-director/src/main/java/org/jclouds/vcloud/director/v1_5/domain/OrgList.java b/labs/vcloud-director/src/main/java/org/jclouds/vcloud/director/v1_5/domain/OrgList.java index 44c98f159e..bf6cbd7882 100644 --- a/labs/vcloud-director/src/main/java/org/jclouds/vcloud/director/v1_5/domain/OrgList.java +++ b/labs/vcloud-director/src/main/java/org/jclouds/vcloud/director/v1_5/domain/OrgList.java @@ -18,9 +18,9 @@ */ package org.jclouds.vcloud.director.v1_5.domain; -import static com.google.common.base.Objects.*; -import static com.google.common.base.Preconditions.*; -import static org.jclouds.vcloud.director.v1_5.VCloudDirectorMediaType.*; +import static com.google.common.base.Objects.equal; +import static com.google.common.base.Preconditions.checkNotNull; +import static org.jclouds.vcloud.director.v1_5.VCloudDirectorMediaType.NS; import java.util.Set; @@ -49,12 +49,12 @@ public class OrgList { public static class Builder { - private Set orgs = Sets.newLinkedHashSet(); + private Set orgs = Sets.newLinkedHashSet(); /** * @see OrgList#getOrgs */ - public Builder orgs(Set orgs) { + public Builder orgs(Set orgs) { this.orgs = Sets.newLinkedHashSet(checkNotNull(orgs, "orgs")); return this; } @@ -62,7 +62,7 @@ public class OrgList { /** * @see OrgList#getOrgs */ - public Builder org(Reference org) { + public Builder addOrg(Link org) { orgs.add(checkNotNull(org, "org")); return this; } @@ -80,14 +80,14 @@ public class OrgList { // For JAXB and builder use } - private OrgList(Set orgs) { + private OrgList(Set orgs) { this.orgs = ImmutableSet.copyOf(orgs); } @XmlElement(namespace = NS, name = "Org") - private Set orgs = Sets.newLinkedHashSet(); + private Set orgs = Sets.newLinkedHashSet(); - public Set getOrgs() { + public Set getOrgs() { return ImmutableSet.copyOf(orgs); } @@ -98,7 +98,7 @@ public class OrgList { if (o == null || getClass() != o.getClass()) return false; OrgList that = OrgList.class.cast(o); - return equal(this.orgs, that.orgs); + return equal(orgs, that.orgs); } @Override