Package | Description |
---|---|
java8.util |
Provides some of the new
java.util classes and implementations of
static and default interface methods added in Java 8 and, in addition, the
JEP 269: Convenience Factory
Methods for Collections that were introduced in Java 9. |
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.AbstractDoubleSpliterator
An abstract
Spliterator.OfDouble that implements
trySplit to permit limited parallelism. |
Modifier and Type | Method and Description |
---|---|
static Spliterator.OfDouble |
Spliterators.emptyDoubleSpliterator()
Creates an empty
Spliterator.OfDouble
The empty spliterator reports Spliterator.SIZED and
Spliterator.SUBSIZED . |
static Spliterator.OfDouble |
J8Arrays.spliterator(double[] array)
Returns a
Spliterator.OfDouble covering all of the specified
array. |
static Spliterator.OfDouble |
Spliterators.spliterator(double[] array,
int additionalCharacteristics)
Creates a
Spliterator.OfDouble covering the elements of a given array,
using a customized set of spliterator characteristics. |
static Spliterator.OfDouble |
J8Arrays.spliterator(double[] array,
int startInclusive,
int endExclusive)
Returns a
Spliterator.OfDouble covering the specified range of
the specified array. |
static Spliterator.OfDouble |
Spliterators.spliterator(double[] array,
int fromIndex,
int toIndex,
int additionalCharacteristics)
Creates a
Spliterator.OfDouble covering a range of elements of a
given array, using a customized set of spliterator characteristics. |
static Spliterator.OfDouble |
Spliterators.spliterator(PrimitiveIterator.OfDouble iterator,
long size,
int characteristics)
Creates a
Spliterator.OfDouble using a given
DoubleStream.DoubleIterator as the source of elements, and with a
given initially reported size. |
static Spliterator.OfDouble |
Spliterators.spliteratorUnknownSize(PrimitiveIterator.OfDouble iterator,
int characteristics)
Creates a
Spliterator.OfDouble using a given
DoubleStream.DoubleIterator as the source of elements, with no
initial size estimate. |
Spliterator.OfDouble |
Spliterator.OfDouble.trySplit() |
Spliterator.OfDouble |
Spliterators.AbstractDoubleSpliterator.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.
|
Modifier and Type | Method and Description |
---|---|
static void |
Spliterators.OfDouble.forEachRemaining(Spliterator.OfDouble this_,
Consumer<? super Double> 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.OfDouble.forEachRemaining(Spliterator.OfDouble this_,
DoubleConsumer 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.OfDouble |
Spliterators.iterator(Spliterator.OfDouble spliterator)
Creates an
PrimitiveIterator.OfDouble from a
Spliterator.OfDouble . |
static boolean |
Spliterators.OfDouble.tryAdvance(Spliterator.OfDouble this_,
Consumer<? super Double> action)
If a remaining element exists, performs the given action on it,
returning
true ; else returns false . |
Modifier and Type | Method and Description |
---|---|
Spliterator.OfDouble |
DoubleStream.spliterator() |
Modifier and Type | Method and Description |
---|---|
static DoubleStream |
StreamSupport.doubleStream(Spliterator.OfDouble spliterator,
boolean parallel)
Creates a new sequential or parallel
DoubleStream from a
Spliterator.OfDouble . |
Modifier and Type | Method and Description |
---|---|
static DoubleStream |
StreamSupport.doubleStream(Supplier<? extends Spliterator.OfDouble> supplier,
int characteristics,
boolean parallel)
Creates a new sequential or parallel
DoubleStream from a
Supplier of Spliterator.OfDouble . |
Copyright © 2020. All rights reserved.