Package | Description |
---|---|
java8.util |
Provides some of the new
java.util classes and implementations
of static and default interface methods added in Java 8. |
java8.util.stream |
Classes to support functional-style operations on streams of elements, such
as map-reduce transformations on collections.
|
Modifier and Type | Class and Description |
---|---|
static class |
Spliterators.AbstractIntSpliterator
An abstract
Spliterator.OfInt that implements trySplit to
permit limited parallelism. |
Modifier and Type | Method and Description |
---|---|
static Spliterator.OfInt |
Spliterators.emptyIntSpliterator()
Creates an empty
Spliterator.OfInt
The empty spliterator reports Spliterator.SIZED and
Spliterator.SUBSIZED . |
static Spliterator.OfInt |
J8Arrays.spliterator(int[] array)
Returns a
Spliterator.OfInt covering all of the specified array. |
static Spliterator.OfInt |
Spliterators.spliterator(int[] array,
int additionalCharacteristics)
Creates a
Spliterator.OfInt covering the elements of a given array,
using a customized set of spliterator characteristics. |
static Spliterator.OfInt |
J8Arrays.spliterator(int[] array,
int startInclusive,
int endExclusive)
Returns a
Spliterator.OfInt covering the specified range of the
specified array. |
static Spliterator.OfInt |
Spliterators.spliterator(int[] array,
int fromIndex,
int toIndex,
int additionalCharacteristics)
Creates a
Spliterator.OfInt covering a range of elements of a
given array, using a customized set of spliterator characteristics. |
static Spliterator.OfInt |
Spliterators.spliterator(PrimitiveIterator.OfInt iterator,
long size,
int characteristics)
Creates a
Spliterator.OfInt using a given
IntStream.IntIterator as the source of elements, and with a given
initially reported size. |
static Spliterator.OfInt |
Spliterators.spliteratorUnknownSize(PrimitiveIterator.OfInt iterator,
int characteristics)
Creates a
Spliterator.OfInt using a given
IntStream.IntIterator as the source of elements, with no initial
size estimate. |
Spliterator.OfInt |
Spliterators.AbstractIntSpliterator.trySplit()
If this spliterator can be partitioned, returns a Spliterator
covering elements, that will, upon return from this method, not
be covered by this Spliterator.
|
Spliterator.OfInt |
Spliterator.OfInt.trySplit() |
Modifier and Type | Method and Description |
---|---|
static void |
Spliterators.OfInt.forEachRemaining(Spliterator.OfInt this_,
Consumer<? super java.lang.Integer> action)
Performs the given action for each remaining element, sequentially in
the current thread, until all elements have been processed or the action
throws an exception.
|
static void |
Spliterators.OfInt.forEachRemaining(Spliterator.OfInt this_,
IntConsumer action)
Performs the given action for each remaining element of the passed Spliterator,
sequentially in the current thread, until all elements have been processed or
the action throws an exception.
|
static PrimitiveIterator.OfInt |
Spliterators.iterator(Spliterator.OfInt spliterator)
Creates an
PrimitiveIterator.OfInt from a
Spliterator.OfInt . |
static boolean |
Spliterators.OfInt.tryAdvance(Spliterator.OfInt this_,
Consumer<? super java.lang.Integer> action)
If a remaining element exists, performs the given action on it,
returning
true ; else returns false . |
Modifier and Type | Method and Description |
---|---|
Spliterator.OfInt |
IntStream.spliterator() |
Modifier and Type | Method and Description |
---|---|
static IntStream |
StreamSupport.intStream(Spliterator.OfInt spliterator,
boolean parallel)
Creates a new sequential or parallel
IntStream from a
Spliterator.OfInt . |
Modifier and Type | Method and Description |
---|---|
static IntStream |
StreamSupport.intStream(Supplier<? extends Spliterator.OfInt> supplier,
int characteristics,
boolean parallel)
Creates a new sequential or parallel
IntStream from a
Supplier of Spliterator.OfInt . |