public abstract class CanonicalSet<T> extends AbstractSet<T>
| Constructor and Description |
|---|
CanonicalSet() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T e) |
boolean |
contains(Object o) |
protected abstract Entry<T> |
createEntry(T array) |
T |
get(T example) |
protected abstract boolean |
hasProperType(Object o) |
Iterator<T> |
iterator() |
boolean |
remove(Object o) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
equals, hashCode, removeAlladdAll, clear, containsAll, isEmpty, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, clear, containsAll, isEmpty, spliterator, toArray, toArrayparallelStream, removeIf, streampublic boolean add(T e)
add in interface Collection<T>add in interface Set<T>add in class AbstractCollection<T>public boolean contains(Object o)
contains in interface Collection<T>contains in interface Set<T>contains in class AbstractCollection<T>protected abstract boolean hasProperType(Object o)
o - object to checkpublic boolean remove(Object o)
remove in interface Collection<T>remove in interface Set<T>remove in class AbstractCollection<T>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<T>retainAll in interface Set<T>retainAll in class AbstractCollection<T>public int size()
size in interface Collection<T>size in interface Set<T>size in class AbstractCollection<T>Copyright © 2018. All rights reserved.