public class BoundedLinkedHashSet<T> extends LinkedHashSet<T> implements BoundedSet<T>
Constructor and Description |
---|
BoundedLinkedHashSet(Iterable<T> contents,
String token) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getToken() |
int |
hashCode() |
String |
toString() |
spliterator
add, clear, clone, contains, isEmpty, iterator, remove, size
removeAll
addAll, containsAll, retainAll, toArray, toArray
finalize, getClass, notify, notifyAll, wait, wait, wait
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArray
parallelStream, removeIf, stream
protected final String token
@Nullable public String getToken()
getToken
in interface BoundedSet<T>
public int hashCode()
hashCode
in interface Collection<T>
hashCode
in interface Set<T>
hashCode
in class AbstractSet<T>
public boolean equals(Object obj)
equals
in interface Collection<T>
equals
in interface Set<T>
equals
in class AbstractSet<T>
public String toString()
toString
in class AbstractCollection<T>
Copyright © 2009–2021 The Apache Software Foundation. All rights reserved.