public static class IntCollections.UnmodifiableCollection extends java.lang.Object implements IntCollection
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(int o)
A Type-Specific add function to reduce (un)boxing
|
boolean |
addAll(java.util.Collection<? extends java.lang.Integer> c) |
boolean |
addAll(IntCollection c)
A Type-Specific addAll function to reduce (un)boxing
|
void |
clear() |
boolean |
contains(int o)
A Type-Specific contains function to reduce (un)boxing
|
boolean |
containsAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
containsAll(IntCollection c)
A Type-Specific containsAll function to reduce (un)boxing
|
boolean |
containsAny(java.util.Collection<?> c)
Deprecated.
|
boolean |
containsAny(IntCollection c)
A Type-Specific containsAny function to reduce (un)boxing
|
boolean |
isEmpty() |
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 remove function that reduces (un)boxing.
|
boolean |
remove(java.lang.Object o)
Deprecated.
|
boolean |
removeAll(java.util.Collection<?> c)
Deprecated.
|
boolean |
removeAll(IntCollection c)
A Type-Specific removeAll function that reduces (un)boxing.
|
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 retainAll function that reduces (un)boxing.
|
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
int[] |
toIntArray()
A Type-Specific toArray function that delegates to
IntCollection.toIntArray(int[]) with a newly created array. |
int[] |
toIntArray(int[] a)
A Type-Specific toArray function that reduces (un)boxing.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, contains, parallelPrimitiveStream, primitiveStream, spliteratorforEach, forEachpublic boolean add(int o)
IntCollectionadd in interface IntCollectiono - the element that should be addedpublic boolean addAll(java.util.Collection<? extends java.lang.Integer> c)
addAll in interface java.util.Collection<java.lang.Integer>public boolean addAll(IntCollection c)
IntCollectionaddAll in interface IntCollectionc - the collection of elements that should be addedpublic boolean contains(int o)
IntCollectioncontains in interface IntCollectiono - the element that is checked forpublic boolean containsAll(IntCollection c)
IntCollectioncontainsAll in interface IntCollectionc - the collection of elements that should be tested forpublic boolean containsAny(IntCollection c)
IntCollectioncontainsAny in interface IntCollectionc - the collection of elements that should be tested for@Deprecated public boolean containsAny(java.util.Collection<?> c)
IntCollectioncontainsAny in interface IntCollectionc - the collection of elements that should be tested for@Deprecated public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<java.lang.Integer>public int size()
size in interface java.util.Collection<java.lang.Integer>public boolean isEmpty()
isEmpty in interface java.util.Collection<java.lang.Integer>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 IntIterableCollection.iterator()@Deprecated public boolean remove(java.lang.Object o)
IntCollectionThis default implementation delegates to the corresponding type-specific function.
remove in interface java.util.Collection<java.lang.Integer>remove in interface IntCollection@Deprecated public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<java.lang.Integer>@Deprecated public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<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.
removeIf in interface java.util.Collection<java.lang.Integer>removeIf in interface IntCollectionpublic boolean remInt(int o)
IntCollectionremInt in interface IntCollectiono - the element that should be removedCollection.remove(Object)public boolean removeAll(IntCollection c)
IntCollectionremoveAll in interface IntCollectionc - the collection of elements that should be removedCollection.removeAll(Collection)public boolean retainAll(IntCollection c)
IntCollectionretainAll in interface IntCollectionc - the collection of elements that should be keptCollection.retainAll(Collection)public boolean remIf(java.util.function.IntPredicate filter)
IntCollectionRemoves elements that were selected by the filter
remIf in interface IntCollectionfilter - Filters the elements that should be removedCollection.removeIf(Predicate)public void clear()
clear in interface java.util.Collection<java.lang.Integer>public java.lang.Object[] toArray()
toArray in interface java.util.Collection<java.lang.Integer>public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<java.lang.Integer>public int[] toIntArray()
IntCollectionIntCollection.toIntArray(int[]) with a newly created array.toIntArray in interface IntCollectionCollection.toArray()public int[] toIntArray(int[] a)
IntCollectiontoIntArray 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[])