Use LinkedHashSet for BoundedHashSet

This allows enumerating Azure containers in the same order as the
service provides.  This more closely matches PageSet and the Atmos
implementation of BoundedSet.
This commit is contained in:
Andrew Gaul 2015-01-09 17:51:23 -08:00
parent b7ab8b18a0
commit fdec63fe47
1 changed files with 2 additions and 2 deletions

View File

@ -17,13 +17,13 @@
package org.jclouds.azure.storage.domain.internal;
import java.net.URI;
import java.util.HashSet;
import java.util.LinkedHashSet;
import org.jclouds.azure.storage.domain.BoundedSet;
import com.google.common.collect.Iterables;
public class BoundedHashSet<T> extends HashSet<T> implements BoundedSet<T> {
public class BoundedHashSet<T> extends LinkedHashSet<T> implements BoundedSet<T> {
protected final URI url;
protected final String prefix;