public interface IntCollection extends java.util.Collection<java.lang.Integer>, IntIterable
Collection for {code int} values. Supplements all Integer-valued
methods with corresponding int-valued methods.| Modifier and Type | Method and Description |
|---|---|
default boolean |
add(java.lang.Integer x) |
default boolean |
addAll(java.util.Collection<? extends java.lang.Integer> c) |
default boolean |
addAllInts(int... xs) |
default boolean |
addAllInts(IntCollection xs) |
default boolean |
addInt(int x) |
default void |
clear() |
default boolean |
contains(java.lang.Object o) |
default boolean |
containsAll(java.util.Collection<?> c) |
default boolean |
isEmpty() |
default boolean |
remove(java.lang.Object o) |
default boolean |
removeAll(java.util.Collection<?> c) |
default boolean |
removeIf(java.util.function.Predicate<? super java.lang.Integer> filter) |
default boolean |
retainAll(java.util.Collection<?> c) |
default java.util.Spliterator.OfInt |
spliterator() |
default java.lang.Integer[] |
toArray() |
default <T> T[] |
toArray(T[] a) |
default int[] |
toIntArray()
Collect the
ints in this IntCollection into an int-array. |
equals, hashCode, iterator, parallelStream, size, streamasInputStream, containsAllInts, containsAllInts, containsAnyInts, containsAnyInts, containsInt, forEach, forEachInt, from, from, intStream, iterator, of, once, once, parallelIntStream, read, removeAllInts, removeAllInts, removeInt, removeIntsIf, retainAllInts, retainAllInts, sequencedefault boolean isEmpty()
isEmpty in interface java.util.Collection<java.lang.Integer>isEmpty in interface IntIterabledefault void clear()
clear in interface java.util.Collection<java.lang.Integer>clear in interface IntIterabledefault java.lang.Integer[] toArray()
toArray in interface java.util.Collection<java.lang.Integer>default <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<java.lang.Integer>default int[] toIntArray()
ints in this IntCollection into an int-array.default boolean add(java.lang.Integer x)
add in interface java.util.Collection<java.lang.Integer>default boolean addInt(int x)
default boolean contains(java.lang.Object o)
contains in interface java.util.Collection<java.lang.Integer>default boolean remove(java.lang.Object o)
remove in interface java.util.Collection<java.lang.Integer>default boolean addAll(java.util.Collection<? extends java.lang.Integer> c)
addAll in interface java.util.Collection<java.lang.Integer>default boolean addAllInts(int... xs)
default boolean addAllInts(IntCollection xs)
default boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<java.lang.Integer>default boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<java.lang.Integer>default boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<java.lang.Integer>default boolean removeIf(java.util.function.Predicate<? super java.lang.Integer> filter)
removeIf in interface java.util.Collection<java.lang.Integer>default java.util.Spliterator.OfInt spliterator()
spliterator in interface java.util.Collection<java.lang.Integer>spliterator in interface IntIterablespliterator in interface java.lang.Iterable<java.lang.Integer>