java.util.LinkedHashSetcom.google.common.collect.Sets



Project jclouds/jclouds in file ...ava.org.jclouds.fujitsu.fgcp.domain.Direction.java (2012-11-04)
@@ -18,11 +18,11 @@
  */
 package org.jclouds.fujitsu.fgcp.domain;
 
-import java.util.LinkedHashSet;
 import java.util.Set;
 
 import com.google.common.base.Objects;
 import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Sets;
 
 /**
  * Grouping of firewall rules pertaining to a particular direction in network
@@ -34,7 +34,7 @@ import com.google.common.collect.ImmutableSet;
 public class Direction {
    private String from;
    private String to;
-   private Set<Policy> policies = new LinkedHashSet<Policy>();
+   private Set<Policy> policies = Sets.newLinkedHashSet();
    private Acceptable acceptable;
    private Prefix prefix;
    private int maxPolicyNum;
Project jclouds/jclouds in file ...ava.org.jclouds.fujitsu.fgcp.domain.DiskImage.java (2012-11-04)
@@ -18,7 +18,6 @@
  */
 package org.jclouds.fujitsu.fgcp.domain;
 
-import java.util.LinkedHashSet;
 import java.util.Set;
 
 import javax.xml.bind.annotation.XmlElement;
@@ -27,6 +26,7 @@ import javax.xml.bind.annotation.XmlRootElement;
 
 import com.google.common.base.Objects;
 import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Sets;
 
 /**
  * Represents a disk image with pre-installed OS and/or software.
@@ -59,7 +59,7 @@ public class DiskImage {
 
    @XmlElementWrapper(name = "softwares")
    @XmlElement(name = "software")
-   private Set<Software> software = new LinkedHashSet<Software>();
+   private Set<Software> software = Sets.newLinkedHashSet();
 
    public String getId() {
       return id;
Project jclouds/jclouds in file ...g.jclouds.fujitsu.fgcp.domain.ErrorStatistics.java (2012-11-04)
@@ -18,12 +18,12 @@
  */
 package org.jclouds.fujitsu.fgcp.domain;
 
-import java.util.LinkedHashSet;
 import java.util.Set;
 
 import javax.xml.bind.annotation.XmlRootElement;
 
 import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Sets;
 
 /**
  * Holds statistics of errors reported by a load balancer (SLB).
@@ -33,7 +33,7 @@ import com.google.common.collect.ImmutableSet;
 @XmlRootElement(name = "errorstatistics")
 public class ErrorStatistics {
    private Period period;
-   private Set<Group> groups = new LinkedHashSet<Group>();
+   private Set<Group> groups = Sets.newLinkedHashSet();
 
    /**
     * @return the period
Project jclouds/jclouds in file ...java.org.jclouds.fujitsu.fgcp.domain.Firewall.java (2012-11-04)
@@ -18,12 +18,12 @@
  */
 package org.jclouds.fujitsu.fgcp.domain;
 
-import java.util.LinkedHashSet;
 import java.util.Set;
 
 import javax.xml.bind.annotation.XmlRootElement;
 
 import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Sets;
 
 /**
  * Represents a firewall (FW).
@@ -33,7 +33,7 @@ import com.google.common.collect.ImmutableSet;
 @XmlRootElement(name = "fw")
 public class Firewall {
    private NAT nat;
-   private Set<Direction> directions = new LinkedHashSet<Direction>();
+   private Set<Direction> directions = Sets.newLinkedHashSet();
    private String log;
    private String status;
    private String category;
Project jclouds/jclouds in file ...in.java.org.jclouds.fujitsu.fgcp.domain.Group.java (2012-11-04)
@@ -18,13 +18,13 @@
  */
 package org.jclouds.fujitsu.fgcp.domain;
 
-import java.util.LinkedHashSet;
 import java.util.Set;
 
 import javax.xml.bind.annotation.XmlEnumValue;
 
 import com.google.common.base.Objects;
 import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Sets;
 
 /**
  * Describes attributes of a software load balancer's (SLB) configuration.
@@ -62,7 +62,7 @@ public class Group {
 
    private RecoveryAction recoveryAction;
 
-   private Set<Target> targets = new LinkedHashSet<Target>();
+   private Set<Target> targets = Sets.newLinkedHashSet();
 
    private String validity;