public abstract class AbstractIntCollection extends java.util.AbstractCollection<java.lang.Integer> implements IntCollection
| Constructor and Description |
|---|
AbstractIntCollection() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(java.lang.Integer e)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
addAll(java.util.Collection<? extends java.lang.Integer> c)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
addAll(IntCollection c)
A Type-Specific addAll function to reduce (un)boxing
|
boolean |
contains(int e)
A Type-Specific implementation of contains.
|
boolean |
contains(java.lang.Object e)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
containsAll(java.util.Collection<?> c) |
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.
|
IntCollection |
copy()
A Function that does a shallow clone of the Collection itself.
|
abstract IntIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
boolean |
remInt(int e)
A Type-Specific implementation of remove.
|
boolean |
remove(java.lang.Object e)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
removeAll(IntCollection c)
A Type-Specific implementation of removeAll.
|
boolean |
removeAll(IntCollection c,
IntConsumer r)
A Type-Specific removeAll function that reduces (un)boxing.
|
boolean |
retainAll(IntCollection c)
A Type-Specific implementation of retainAll.
|
boolean |
retainAll(IntCollection c,
IntConsumer r)
A Type-Specific retainAll function that reduces (un)boxing.
|
int[] |
toIntArray()
A Type-Specific implementation of toArray that links to
toIntArray(int[]) with a newly created array. |
int[] |
toIntArray(int[] a)
A Type-Specific implementation of toArray.
|
clear, isEmpty, removeAll, retainAll, size, toArray, toArray, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, addAll, addAll, addAll, parallelPrimitiveStream, pour, primitiveStream, remIf, removeIf, spliterator, synchronize, synchronize, unmodifiableclear, equals, hashCode, isEmpty, parallelStream, removeAll, retainAll, size, stream, toArray, toArrayarrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, forEach, forEach, limit, map, matchesAll, matchesAny, matchesNone, peek, pourAsList, pourAsSet, reduce, reduce, sortedpublic abstract 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 java.util.AbstractCollection<java.lang.Integer>Collection.iterator()@Deprecated public boolean add(java.lang.Integer e)
This default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
add in interface java.util.Collection<java.lang.Integer>add in interface IntCollectionadd in class java.util.AbstractCollection<java.lang.Integer>public boolean addAll(IntCollection c)
IntCollectionaddAll in interface IntCollectionc - the collection of elements that should be addedpublic IntCollection copy()
IntCollectioncopy in interface IntCollection@Deprecated public boolean contains(java.lang.Object e)
This default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
contains in interface java.util.Collection<java.lang.Integer>contains in interface IntCollectioncontains in class java.util.AbstractCollection<java.lang.Integer>public boolean contains(int e)
contains in interface IntCollectione - the element that should be searched for.@Deprecated public boolean addAll(java.util.Collection<? extends java.lang.Integer> c)
This default implementation delegates to the corresponding type-specific function.
addAll in interface java.util.Collection<java.lang.Integer>addAll in class java.util.AbstractCollection<java.lang.Integer>public boolean containsAll(IntCollection c)
containsAll in interface IntCollectionc - the collection that should be checked if it contains all elements.java.lang.NullPointerException - if the collection is nullpublic boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<java.lang.Integer>containsAll in class java.util.AbstractCollection<java.lang.Integer>@Deprecated public boolean containsAny(java.util.Collection<?> c)
containsAny in interface IntCollectionc - the elements that should be checked forjava.lang.NullPointerException - if the collection is nullpublic boolean containsAny(IntCollection c)
containsAny in interface IntCollectionc - the elements that should be checked forjava.lang.NullPointerException - if the collection is null@Deprecated public boolean remove(java.lang.Object e)
This 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 java.util.AbstractCollection<java.lang.Integer>public boolean remInt(int e)
remInt in interface IntCollectione - the element that is searched forCollection.remove(Object)public boolean removeAll(IntCollection c)
removeAll in interface IntCollectionc - the elements that should be deletedjava.lang.NullPointerException - if the collection is nullCollection.removeAll(Collection)public boolean removeAll(IntCollection c, IntConsumer r)
IntCollectionremoveAll in interface IntCollectionc - the collection of elements that should be removedr - elements that got removedCollection.removeAll(Collection)public boolean retainAll(IntCollection c)
retainAll in interface IntCollectionc - the elements that should be keptjava.lang.NullPointerException - if the collection is nullCollection.retainAll(Collection)public boolean retainAll(IntCollection c, IntConsumer r)
IntCollectionretainAll in interface IntCollectionc - the collection of elements that should be keptr - elements that got removedCollection.retainAll(Collection)public int[] toIntArray()
toIntArray(int[]) with a newly created array.toIntArray in interface IntCollectionCollection.toArray()public int[] toIntArray(int[] a)
toIntArray in interface IntCollectiona - array that the elements should be injected to. If null or to small a new array with the right size is createdCollection.toArray(Object[])