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 boolean
equals(Object obj)
String
getToken()
int
hashCode()
String
toString()
-
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:
getToken
in interfaceBoundedSet<T>
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceCollection<T>
- Specified by:
hashCode
in interfaceSet<T>
- Overrides:
hashCode
in classAbstractSet<T>
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfaceCollection<T>
- Specified by:
equals
in interfaceSet<T>
- Overrides:
equals
in classAbstractSet<T>
-
toString
public String toString()
- Overrides:
toString
in classAbstractCollection<T>
-
-