java.util.Listjava.util.SortedSet



Project jclouds/jclouds in file ....src.main.java.org.jclouds.aws.s3.S3BlobStore.java (2009-10-03)
@@ -23,7 +23,7 @@
  */
 package org.jclouds.aws.s3;
 
-import java.util.List;
+import java.util.SortedSet;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.Future;
 
@@ -328,7 +328,7 @@ public interface S3BlobStore extends BlobStore<BucketMetadata, ObjectMetadata, S
    @GET
    @XMLResponseParser(ListAllMyBucketsHandler.class)
    @Path("/")
-   List<BucketMetadata> listContainers();
+   SortedSet<BucketMetadata> listContainers();
 
    /**
     * Copies one object to another bucket, retaining UserMetadata from the source. The destination
Project jclouds/jclouds in file ...clouds.aws.s3.jets3t.JCloudsS3ServiceLiveTest.java (2009-10-03)
@@ -35,8 +35,8 @@ import java.io.IOException;
 import java.io.InputStream;
 import java.security.NoSuchAlgorithmException;
 import java.util.Iterator;
-import java.util.List;
 import java.util.Map;
+import java.util.SortedSet;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.TimeUnit;
 import java.util.concurrent.TimeoutException;
@@ -211,7 +211,7 @@ public class JCloudsS3ServiceLiveTest
          // Ensure there is at least 1 bucket in S3 account to list and compare.
          S3Bucket[] jsBuckets = service.listAllBuckets();
 
-         List<org.jclouds.aws.s3.domain.BucketMetadata> jcBuckets = context.getApi()
+         SortedSet<org.jclouds.aws.s3.domain.BucketMetadata> jcBuckets = context.getApi()
                   .listContainers();
 
          assert jsBuckets.length == jcBuckets.size();
Project jclouds/jclouds in file ....integration.internal.BaseBlobIntegrationTest.java (2009-10-03)
@@ -38,7 +38,7 @@ import java.io.FileInputStream;
 import java.io.IOException;
 import java.io.InputStream;
 import java.util.Collections;
-import java.util.List;
+import java.util.SortedSet;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.TimeUnit;
 import java.util.concurrent.TimeoutException;
@@ -314,7 +314,7 @@ public class BaseBlobIntegrationTest<S extends BlobStore<C, M, B>, C extends Con
 
    private void assertContainerEmptyDeleting(String containerName, String key)
             throws InterruptedException, ExecutionException, TimeoutException {
-      List<M> listing = context.getApi().listBlobs(containerName).get(10, TimeUnit.SECONDS);
+      SortedSet<M> listing = context.getApi().listBlobs(containerName).get(10, TimeUnit.SECONDS);
       assertEquals(listing.size(), 0, String.format(
                "deleting %s, we still have %s left in container %s, using encoding %s", key,
                listing.size(), containerName, LOCAL_ENCODING));
Project jclouds/jclouds in file ...tegration.internal.BaseServiceIntegrationTest.java (2009-10-03)
@@ -23,7 +23,7 @@
  */
 package org.jclouds.blobstore.integration.internal;
 
-import java.util.List;
+import java.util.SortedSet;
 
 import org.jclouds.blobstore.BlobStore;
 import org.jclouds.blobstore.domain.Blob;
@@ -40,7 +40,7 @@ public class BaseServiceIntegrationTest<S extends BlobStore<C, M, B>, C extends
 
    @Test(groups = { "integration", "live" })
    void containerDoesntExist() throws Exception {
-      List<C> list = context.getApi().listContainers();
+      SortedSet<C> list = context.getApi().listContainers();
       assert !list.contains(new ContainerMetadata("shouldntexist"));
    }
 
Project jclouds/jclouds in file ...a.org.jclouds.mezeo.pcs2.PCSBlobStoreLiveTest.java (2009-10-03)
@@ -30,7 +30,7 @@ import static org.testng.Assert.assertTrue;
 
 import java.io.InputStream;
 import java.net.URI;
-import java.util.List;
+import java.util.SortedSet;
 import java.util.concurrent.TimeUnit;
 
 import org.apache.commons.io.IOUtils;
@@ -73,7 +73,7 @@ public class PCSBlobStoreLiveTest {
 
    @Test
    public void testListContainers() throws Exception {
-      List<ContainerMetadata> response = connection.listContainers();
+      SortedSet<ContainerMetadata> response = connection.listContainers();
       assertNotNull(response);
       long initialContainerCount = response.size();
       assertTrue(initialContainerCount >= 0);