T - the type of elements maintained by this Collectionpublic static class ObjectCollections.UnmodifiableCollection<T> extends java.lang.Object implements ObjectCollection<T>
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T o) |
boolean |
addAll(java.util.Collection<? extends T> c) |
boolean |
addAll(ObjectCollection<T> c)
A Type-Specific addAll function to reduce (un)boxing
|
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
boolean |
containsAll(ObjectCollection<T> c)
A Type-Specific containsAll function to reduce (un)boxing
|
boolean |
containsAny(java.util.Collection<?> c)
Returns true if any element of the Collection is found in the provided collection.
|
boolean |
containsAny(ObjectCollection<T> c)
A Type-Specific containsAny function to reduce (un)boxing
|
boolean |
isEmpty() |
ObjectIterator<T> |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
boolean |
remove(java.lang.Object o)
Deprecated.
|
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
removeAll(ObjectCollection<T> c)
A Type-Specific removeAll function that reduces (un)boxing.
|
boolean |
removeIf(java.util.function.Predicate<? super T> filter) |
boolean |
retainAll(java.util.Collection<?> c) |
boolean |
retainAll(ObjectCollection<T> c)
A Type-Specific retainAll function that reduces (un)boxing.
|
int |
size() |
java.lang.Object[] |
toArray() |
<E> E[] |
toArray(E[] a) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitspliteratorpublic boolean addAll(java.util.Collection<? extends T> c)
addAll in interface java.util.Collection<T>public boolean addAll(ObjectCollection<T> c)
ObjectCollectionaddAll in interface ObjectCollection<T>c - the collection of elements that should be addedpublic boolean contains(java.lang.Object o)
contains in interface java.util.Collection<T>public boolean containsAll(ObjectCollection<T> c)
ObjectCollectioncontainsAll in interface ObjectCollection<T>c - the collection of elements that should be tested forpublic boolean containsAny(ObjectCollection<T> c)
ObjectCollectioncontainsAny in interface ObjectCollection<T>c - the collection of elements that should be tested forpublic boolean containsAny(java.util.Collection<?> c)
ObjectCollectioncontainsAny in interface ObjectCollection<T>c - the collection of elements that should be tested forpublic boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<T>public int size()
size in interface java.util.Collection<T>public boolean isEmpty()
isEmpty in interface java.util.Collection<T>public ObjectIterator<T> iterator()
ObjectCollectioniterator in interface java.lang.Iterable<T>iterator in interface java.util.Collection<T>iterator in interface ObjectCollection<T>iterator in interface ObjectIterable<T>Collection.iterator()@Deprecated public boolean remove(java.lang.Object o)
remove in interface java.util.Collection<T>public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<T>public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<T>public boolean removeIf(java.util.function.Predicate<? super T> filter)
removeIf in interface java.util.Collection<T>public boolean removeAll(ObjectCollection<T> c)
ObjectCollectionremoveAll in interface ObjectCollection<T>c - the collection of elements that should be removedCollection.removeAll(Collection)public boolean retainAll(ObjectCollection<T> c)
ObjectCollectionretainAll in interface ObjectCollection<T>c - the collection of elements that should be keptCollection.retainAll(Collection)public void clear()
clear in interface java.util.Collection<T>public java.lang.Object[] toArray()
toArray in interface java.util.Collection<T>public <E> E[] toArray(E[] a)
toArray in interface java.util.Collection<T>