Class BoundedLinkedHashSet<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- java.util.HashSet<E>
-
- java.util.LinkedHashSet<T>
-
- 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>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BoundedLinkedHashSet(Iterable<T> contents, String token)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetToken()inthashCode()StringtoString()-
Methods inherited from class java.util.LinkedHashSet
spliterator
-
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.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Field Detail
-
token
protected final String token
-
-
Method Detail
-
getToken
@Nullable public String getToken()
- Specified by:
getTokenin interfaceBoundedSet<T>
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceCollection<T>- Specified by:
hashCodein interfaceSet<T>- Overrides:
hashCodein classAbstractSet<T>
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceCollection<T>- Specified by:
equalsin interfaceSet<T>- Overrides:
equalsin classAbstractSet<T>
-
toString
public String toString()
- Overrides:
toStringin classAbstractCollection<T>
-
-