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 | Interface and Description |
---|---|
static class |
IntCollection.Base
Base class for
IntCollection implementations. |
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 CharCollection |
asChars() |
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, stream
asInputStream, containsAllInts, containsAllInts, containsAnyInts, containsAnyInts, containsInt, forEach, forEachInt, from, from, intStream, iterator, of, once, once, parallelIntStream, read, removeAllInts, removeAllInts, removeInt, removeIntsIf, retainAllInts, retainAllInts, sequence
default boolean isEmpty()
isEmpty
in interface java.util.Collection<java.lang.Integer>
isEmpty
in interface IntIterable
default void clear()
clear
in interface java.util.Collection<java.lang.Integer>
clear
in interface IntIterable
default 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 IntIterable
spliterator
in interface java.lang.Iterable<java.lang.Integer>
default CharCollection asChars()
asChars
in interface IntIterable