org.jclouds.atmos.domain.internal
Class BoundedLinkedHashSet<T>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by java.util.HashSet<E>
              extended by java.util.LinkedHashSet<T>
                  extended by org.jclouds.atmos.domain.internal.BoundedLinkedHashSet<T>
All Implemented Interfaces:
Serializable, Cloneable, Iterable<T>, Collection<T>, Set<T>, BoundedSet<T>

public class BoundedLinkedHashSet<T>
extends LinkedHashSet<T>
implements BoundedSet<T>

Author:
Adrian Cole
See Also:
Serialized Form

Field Summary
protected  String token
           
 
Constructor Summary
BoundedLinkedHashSet(Iterable<T> contents, String token)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getToken()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, remove, size
 
Methods inherited from class java.util.AbstractSet
removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Field Detail

token

protected final String token
Constructor Detail

BoundedLinkedHashSet

public BoundedLinkedHashSet(Iterable<T> contents,
                            @Nullable
                            String token)
Method Detail

getToken

@Nullable
public String getToken()
Specified by:
getToken in interface BoundedSet<T>

hashCode

public int hashCode()
Specified by:
hashCode in interface Collection<T>
Specified by:
hashCode in interface Set<T>
Overrides:
hashCode in class AbstractSet<T>

equals

public boolean equals(Object obj)
Specified by:
equals in interface Collection<T>
Specified by:
equals in interface Set<T>
Overrides:
equals in class AbstractSet<T>

toString

public String toString()
Overrides:
toString in class AbstractCollection<T>


Copyright © 2009-2011 jclouds. All Rights Reserved.