T - set element typepublic class SmallSet<T> extends AbstractSet<T>
| Constructor and Description |
|---|
SmallSet(Collection<T> collection) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T t) |
boolean |
contains(Object o) |
Iterator<T> |
iterator() |
boolean |
remove(Object o) |
int |
size() |
Stream<T> |
stream() |
String |
toString() |
equals, hashCode, removeAlladdAll, clear, containsAll, isEmpty, retainAll, toArray, toArrayaddAll, clear, containsAll, isEmpty, retainAll, spliterator, toArray, toArrayparallelStream, removeIfpublic SmallSet(Collection<T> collection)
collection - collection to copypublic boolean add(@Nullable T t)
add in interface Collection<T>add in interface Set<T>add in class AbstractCollection<T>public boolean remove(@Nullable Object o)
remove in interface Collection<T>remove in interface Set<T>remove in class AbstractCollection<T>public boolean contains(@Nullable Object o)
contains in interface Collection<T>contains in interface Set<T>contains in class AbstractCollection<T>public int size()
size in interface Collection<T>size in interface Set<T>size in class AbstractCollection<T>public String toString()
toString in class AbstractCollection<T>Copyright © 2019 The University of Manchester. All rights reserved.