T - the type of elements maintained by this Collectionpublic static class ObjectCollections.EmptyCollection<T> extends AbstractObjectCollection<T>
| Constructor and Description |
|---|
EmptyCollection() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T o) |
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 |
containsAny(java.util.Collection<?> c)
This implementation iterates over the elements of the collection and checks if they are stored in this collection
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
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 implementation of removeAll.
|
boolean |
removeIf(java.util.function.Predicate<? super T> filter) |
boolean |
retainAll(java.util.Collection<?> c) |
boolean |
retainAll(ObjectCollection<T> c)
A Type-Specific implementation of retainAll.
|
int |
size() |
java.lang.Object[] |
toArray() |
<E> E[] |
toArray(E[] a) |
addAll, containsAll, containsAnyspliteratorpublic boolean add(T o)
public boolean addAll(ObjectCollection<T> c)
ObjectCollectionaddAll in interface ObjectCollection<T>addAll in class AbstractObjectCollection<T>c - the collection of elements that should be addedpublic boolean contains(java.lang.Object o)
public boolean containsAny(java.util.Collection<?> c)
AbstractObjectCollectioncontainsAny in interface ObjectCollection<T>containsAny in class AbstractObjectCollection<T>c - the elements that should be checked forpublic boolean containsAll(java.util.Collection<?> c)
public int hashCode()
hashCode in interface java.util.Collection<T>hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in interface java.util.Collection<T>equals in class java.lang.Object@Deprecated public boolean remove(java.lang.Object o)
public boolean removeAll(java.util.Collection<?> c)
public boolean retainAll(java.util.Collection<?> c)
public boolean removeIf(java.util.function.Predicate<? super T> filter)
public boolean removeAll(ObjectCollection<T> c)
AbstractObjectCollectionremoveAll in interface ObjectCollection<T>removeAll in class AbstractObjectCollection<T>c - the elements that should be deletedCollection.removeAll(Collection)public boolean retainAll(ObjectCollection<T> c)
AbstractObjectCollectionretainAll in interface ObjectCollection<T>retainAll in class AbstractObjectCollection<T>c - the elements that should be keptCollection.retainAll(Collection)public java.lang.Object[] toArray()
public <E> E[] toArray(E[] a)
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>iterator in class AbstractObjectCollection<T>Collection.iterator()public void clear()