java.util.Setcom.google.common.collect.FluentIterable



Project jclouds/jclouds in file ...ava.org.jclouds.sqs.features.QueueApiLiveTest.java (2012-09-15)
@@ -24,11 +24,11 @@ import static org.testng.Assert.assertNotNull;
 
 import java.net.URI;
 import java.util.Map;
-import java.util.Set;
 
 import org.jclouds.sqs.internal.BaseSQSApiLiveTest;
 import org.testng.annotations.Test;
 
+import com.google.common.collect.FluentIterable;
 import com.google.common.collect.ImmutableSet;
 
 /**
@@ -48,7 +48,7 @@ public class QueueApiLiveTest extends BaseSQSApiLiveTest {
    }
 
    protected void listQueuesInRegion(String region) throws InterruptedException {
-      Set<URI> allResults = api().getQueueApiForRegion(region).list();
+      FluentIterable<URI> allResults = api().getQueueApiForRegion(region).list();
       assertNotNull(allResults);
       if (allResults.size() >= 1) {
          URI queue = getLast(allResults);
Project jclouds/legacy-jclouds in file ...ava.org.jclouds.sqs.features.QueueApiLiveTest.java (2012-09-15)
@@ -24,11 +24,11 @@ import static org.testng.Assert.assertNotNull;
 
 import java.net.URI;
 import java.util.Map;
-import java.util.Set;
 
 import org.jclouds.sqs.internal.BaseSQSApiLiveTest;
 import org.testng.annotations.Test;
 
+import com.google.common.collect.FluentIterable;
 import com.google.common.collect.ImmutableSet;
 
 /**
@@ -48,7 +48,7 @@ public class QueueApiLiveTest extends BaseSQSApiLiveTest {
    }
 
    protected void listQueuesInRegion(String region) throws InterruptedException {
-      Set<URI> allResults = api().getQueueApiForRegion(region).list();
+      FluentIterable<URI> allResults = api().getQueueApiForRegion(region).list();
       assertNotNull(allResults);
       if (allResults.size() >= 1) {
          URI queue = getLast(allResults);
Project jclouds/jclouds in file ...ds.openstack.quantum.v1_0.features.NetworkApi.java (2012-09-16)
@@ -18,7 +18,6 @@
  */
 package org.jclouds.openstack.quantum.v1_0.features;
 
-import java.util.Set;
 import java.util.concurrent.TimeUnit;
 
 import org.jclouds.concurrent.Timeout;
@@ -26,6 +25,8 @@ import org.jclouds.openstack.quantum.v1_0.domain.Network;
 import org.jclouds.openstack.quantum.v1_0.domain.NetworkDetails;
 import org.jclouds.openstack.quantum.v1_0.domain.Reference;
 
+import com.google.common.collect.FluentIterable;
+
 /**
  * Provides synchronous access to Network operations on the openstack quantum API.
  * <p/>
@@ -44,12 +45,12 @@ public interface NetworkApi {
     * Returns the list of all networks currently defined in Quantum for the current tenant. The list provides the unique
     * identifier of each network configured for the tenant.
     */
-   Set<? extends Reference> listReferences();
+   FluentIterable<? extends Reference> listReferences();
 
    /**
     * Returns all networks currently defined in Quantum for the current tenant.
     */
-   Set<? extends Network> list();
+   FluentIterable<? extends Network> list();
 
    /**
     * Returns the specific network.
Project jclouds/jclouds in file ...louds.openstack.quantum.v1_0.features.PortApi.java (2012-09-16)
@@ -18,7 +18,6 @@
  */
 package org.jclouds.openstack.quantum.v1_0.features;
 
-import java.util.Set;
 import java.util.concurrent.TimeUnit;
 
 import org.jclouds.concurrent.Timeout;
@@ -27,6 +26,8 @@ import org.jclouds.openstack.quantum.v1_0.domain.Port;
 import org.jclouds.openstack.quantum.v1_0.domain.PortDetails;
 import org.jclouds.openstack.quantum.v1_0.domain.Reference;
 
+import com.google.common.collect.FluentIterable;
+
 /**
  * Provides synchronous access to Port operations on the openstack quantum API.
  * <p/>
@@ -44,12 +45,12 @@ public interface PortApi {
    /**
     * Returns the list of all ports currently defined in Quantum for the requested network
     */
-   Set<? extends Reference> listReferences();
+   FluentIterable<? extends Reference> listReferences();
 
    /**
     * Returns the set of ports currently defined in Quantum for the requested network.
     */
-   Set<? extends Port> list();
+   FluentIterable<? extends Port> list();
 
    /**
     * Returns a specific port.
Project jclouds/jclouds in file ...c.main.java.org.jclouds.sqs.features.QueueApi.java (2012-09-15)
@@ -20,7 +20,6 @@ package org.jclouds.sqs.features;
 
 import java.net.URI;
 import java.util.Map;
-import java.util.Set;
 import java.util.concurrent.TimeUnit;
 
 import org.jclouds.concurrent.Timeout;
@@ -28,6 +27,8 @@ import org.jclouds.sqs.domain.QueueAttributes;
 import org.jclouds.sqs.options.CreateQueueOptions;
 import org.jclouds.sqs.options.ListQueuesOptions;
 
+import com.google.common.collect.FluentIterable;
+
 /**
  * Provides access to SQS via their REST API.
  * <p/>
@@ -53,9 +54,9 @@ public interface QueueApi {
     *      "http://docs.amazonwebservices.com/AWSSimpleQueueService/2011-10-01/APIReference/Query_QueryListQueues.html"
     *      />
     */
-   Set<URI> list();
+   FluentIterable<URI> list();
 
-   Set<URI> list(ListQueuesOptions options);
+   FluentIterable<URI> list(ListQueuesOptions options);
 
    /**
     * The CreateQueue action creates a new queue.