public interface IntCollection extends java.util.Collection<java.lang.Integer>, IntIterable
Collection that reduces (un)boxing| Modifier and Type | Method and Description |
|---|---|
boolean |
add(int o)
A Type-Specific add function to reduce (un)boxing
|
default boolean |
add(java.lang.Integer o)
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 o)
A Type-Specific contains function to reduce (un)boxing
|
default boolean |
contains(java.lang.Object o)
Deprecated.
Please use the corresponding type-specific function instead.
|
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
|
IntIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
default java.util.stream.IntStream |
parallelPrimitiveStream()
Returns a Java-Type-Specific Parallel Stream to reduce boxing/unboxing.
|
default java.util.stream.IntStream |
primitiveStream()
Returns a Java-Type-Specific Stream to reduce boxing/unboxing.
|
default 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.
|
default boolean |
remove(java.lang.Object o)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
removeAll(IntCollection c)
A Type-Specific removeAll function that reduces (un)boxing.
|
default boolean |
removeIf(java.util.function.Predicate<? super java.lang.Integer> filter)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
retainAll(IntCollection c)
A Type-Specific retainAll function that reduces (un)boxing.
|
default IntSplititerator |
spliterator()
A Type Specific Type Splititerator to reduce boxing/unboxing
|
int[] |
toIntArray()
A Type-Specific toArray function that delegates to
toIntArray(int[]) with a newly created array. |
int[] |
toIntArray(int[] a)
A Type-Specific toArray function that reduces (un)boxing.
|
addAll, clear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, retainAll, size, stream, toArray, toArrayforEach, forEachboolean add(int o)
o - the element that should be addedboolean addAll(IntCollection c)
c - the collection of elements that should be addedboolean contains(int o)
o - the element that is checked forboolean containsAll(IntCollection c)
c - the collection of elements that should be tested forboolean containsAny(IntCollection c)
c - the collection of elements that should be tested for@Deprecated boolean containsAny(java.util.Collection<?> c)
c - the collection of elements that should be tested forboolean remInt(int o)
o - the element that should be removedCollection.remove(Object)boolean removeAll(IntCollection c)
c - the collection of elements that should be removedCollection.removeAll(Collection)boolean retainAll(IntCollection c)
c - the collection of elements that should be keptCollection.retainAll(Collection)int[] toIntArray()
toIntArray(int[]) with a newly created array.Collection.toArray()int[] toIntArray(int[] a)
a - array that the elements should be injected to. If null or to small a new array with the right size is createdCollection.toArray(Object[])@Deprecated default boolean removeIf(java.util.function.Predicate<? super java.lang.Integer> filter)
This default implementation delegates to the corresponding type-specific function.
removeIf in interface java.util.Collection<java.lang.Integer>default boolean remIf(java.util.function.IntPredicate filter)
Removes elements that were selected by the filter
filter - Filters the elements that should be removedjava.lang.NullPointerException - if filter is nullCollection.removeIf(Predicate)@Deprecated default boolean add(java.lang.Integer o)
This default implementation delegates to the corresponding type-specific function.
add in interface java.util.Collection<java.lang.Integer>@Deprecated default boolean contains(java.lang.Object o)
This default implementation delegates to the corresponding type-specific function.
contains in interface java.util.Collection<java.lang.Integer>@Deprecated default boolean remove(java.lang.Object o)
This default implementation delegates to the corresponding type-specific function.
remove in interface java.util.Collection<java.lang.Integer>IntIterator iterator()
iterator in interface java.util.Collection<java.lang.Integer>iterator in interface IntIterableiterator in interface java.lang.Iterable<java.lang.Integer>Collection.iterator()default java.util.stream.IntStream primitiveStream()
default java.util.stream.IntStream parallelPrimitiveStream()
default IntSplititerator spliterator()
spliterator in interface java.util.Collection<java.lang.Integer>spliterator in interface IntIterablespliterator in interface java.lang.Iterable<java.lang.Integer>