T - the type of elements maintained by this Collectionpublic static class ObjectSets.UnmodifiableSet<T> extends ObjectCollections.UnmodifiableCollection<T> implements ObjectSet<T>
| Modifier and Type | Method and Description |
|---|---|
T |
addOrGet(T o)
A Helper method that allows to add a element or getting the already present implement.
|
ObjectSet<T> |
copy()
A Function that does a shallow clone of the Collection itself.
|
add, addAll, addAll, addAll, clear, contains, containsAll, containsAll, containsAny, containsAny, count, equals, findFirst, forEach, forEach, hashCode, isEmpty, iterator, matchesAll, matchesAny, matchesNone, reduce, reduce, remove, removeAll, removeAll, removeAll, removeIf, retainAll, retainAll, retainAll, size, toArray, toArray, toStringiterator, spliterator, synchronize, synchronize, unmodifiableadd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArrayaddAll, addAll, addAll, addAll, containsAll, containsAny, containsAny, pour, removeAll, removeAll, retainAll, retainAll, toArrayarrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, limit, map, matchesAll, matchesAny, matchesNone, peek, pourAsList, pourAsSet, reduce, reduce, sortedpublic T addOrGet(T o)
ObjectSetpublic ObjectSet<T> copy()
ObjectCollectioncopy in interface ObjectCollection<T>copy in interface ObjectSet<T>copy in class ObjectCollections.UnmodifiableCollection<T>