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(IntCollection c)
A Type-Specific implementation of containsAll.
|
boolean |
containsAny(java.util.Collection<?> c)
Deprecated.
if this is a primitive collection
|
boolean |
containsAny(IntCollection c)
This implementation iterates over the elements of the collection and checks if they are stored in this collection.
|
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 |
retainAll(IntCollection c)
A Type-Specific implementation of retainAll.
|
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, containsAll, isEmpty, removeAll, retainAll, size, toArray, toArray, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, parallelPrimitiveStream, primitiveStream, remIf, removeIf, spliteratorclear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, retainAll, size, stream, toArray, toArrayforEach, forEachpublic 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 added@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 null@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 retainAll(IntCollection c)
retainAll in interface IntCollectionc - the elements that should be keptjava.lang.NullPointerException - if the collection is nullCollection.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[])