public static class IntCollections.EmptyCollection extends AbstractIntCollection
| Constructor and Description |
|---|
EmptyCollection() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(int o)
A Type-Specific add function to reduce (un)boxing
|
boolean |
addAll(IntCollection c)
A Type-Specific addAll function to reduce (un)boxing
|
void |
clear() |
boolean |
contains(int o)
A Type-Specific implementation of contains.
|
boolean |
containsAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
containsAll(IntCollection c)
A Type-Specific implementation of containsAll.
|
boolean |
containsAny(java.util.Collection<?> c)
Deprecated.
|
boolean |
containsAny(IntCollection 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() |
IntIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
boolean |
remIf(java.util.function.IntPredicate filter)
A Type-Specific removeIf function to reduce (un)boxing.
|
boolean |
remInt(int o)
A Type-Specific implementation of remove.
|
boolean |
remove(java.lang.Object o)
Deprecated.
|
boolean |
removeAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
removeAll(IntCollection c)
A Type-Specific implementation of removeAll.
|
boolean |
removeIf(java.util.function.Predicate<? super java.lang.Integer> filter)
Deprecated.
|
boolean |
retainAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
retainAll(IntCollection c)
A Type-Specific implementation of retainAll.
|
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
int[] |
toIntArray()
A Type-Specific implementation of toArray that links to
AbstractIntCollection.toIntArray(int[]) with a newly created array. |
int[] |
toIntArray(int[] a)
A Type-Specific implementation of toArray.
|
add, addAll, containsparallelPrimitiveStream, primitiveStream, spliteratorforEach, forEachpublic boolean add(int o)
IntCollectiono - the element that should be addedpublic boolean addAll(IntCollection c)
IntCollectionaddAll in interface IntCollectionaddAll in class AbstractIntCollectionc - the collection of elements that should be addedpublic boolean contains(int o)
AbstractIntCollectioncontains in interface IntCollectioncontains in class AbstractIntCollectiono - the element that should be searched for.public boolean containsAll(IntCollection c)
AbstractIntCollectioncontainsAll in interface IntCollectioncontainsAll in class AbstractIntCollectionc - the collection that should be checked if it contains all elements.public boolean containsAny(IntCollection c)
AbstractIntCollectioncontainsAny in interface IntCollectioncontainsAny in class AbstractIntCollectionc - the elements that should be checked for@Deprecated public boolean containsAny(java.util.Collection<?> c)
AbstractIntCollectioncontainsAny in interface IntCollectioncontainsAny in class AbstractIntCollectionc - the elements that should be checked for@Deprecated public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<java.lang.Integer>containsAll in class java.util.AbstractCollection<java.lang.Integer>public int hashCode()
hashCode in interface java.util.Collection<java.lang.Integer>hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in interface java.util.Collection<java.lang.Integer>equals in class java.lang.Object@Deprecated public boolean remove(java.lang.Object o)
AbstractIntCollectionThis default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
remove in interface java.util.Collection<java.lang.Integer>remove in interface IntCollectionremove in class AbstractIntCollection@Deprecated public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<java.lang.Integer>removeAll in class java.util.AbstractCollection<java.lang.Integer>@Deprecated public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<java.lang.Integer>retainAll in class java.util.AbstractCollection<java.lang.Integer>@Deprecated public boolean removeIf(java.util.function.Predicate<? super java.lang.Integer> filter)
IntCollectionThis default implementation delegates to the corresponding type-specific function.
public boolean remInt(int o)
AbstractIntCollectionremInt in interface IntCollectionremInt in class AbstractIntCollectiono - the element that is searched forCollection.remove(Object)public boolean removeAll(IntCollection c)
AbstractIntCollectionremoveAll in interface IntCollectionremoveAll in class AbstractIntCollectionc - the elements that should be deletedCollection.removeAll(Collection)public boolean retainAll(IntCollection c)
AbstractIntCollectionretainAll in interface IntCollectionretainAll in class AbstractIntCollectionc - the elements that should be keptCollection.retainAll(Collection)public boolean remIf(java.util.function.IntPredicate filter)
IntCollectionRemoves elements that were selected by the filter
filter - Filters the elements that should be removedCollection.removeIf(Predicate)public java.lang.Object[] toArray()
toArray in interface java.util.Collection<java.lang.Integer>toArray in class java.util.AbstractCollection<java.lang.Integer>public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<java.lang.Integer>toArray in class java.util.AbstractCollection<java.lang.Integer>public int[] toIntArray()
AbstractIntCollectionAbstractIntCollection.toIntArray(int[]) with a newly created array.toIntArray in interface IntCollectiontoIntArray in class AbstractIntCollectionCollection.toArray()public int[] toIntArray(int[] a)
AbstractIntCollectiontoIntArray in interface IntCollectiontoIntArray in class AbstractIntCollectiona - array that the elements should be injected to. If null or to small a new array with the right size is createdCollection.toArray(Object[])public IntIterator iterator()
IntCollectioniterator in interface java.lang.Iterable<java.lang.Integer>iterator in interface java.util.Collection<java.lang.Integer>iterator in interface IntCollectioniterator in interface IntIterableiterator in class AbstractIntCollectionCollection.iterator()public void clear()
clear in interface java.util.Collection<java.lang.Integer>clear in class java.util.AbstractCollection<java.lang.Integer>public int size()
size in interface java.util.Collection<java.lang.Integer>size in class java.util.AbstractCollection<java.lang.Integer>