- cancel(boolean) - Method in class java8.util.concurrent.CompletableFuture
-
If not already completed, completes this CompletableFuture with
a CancellationException
.
- cancel(boolean) - Method in class java8.util.concurrent.ForkJoinTask
-
Attempts to cancel execution of this task.
- characteristics() - Method in interface java8.util.Spliterator
-
Returns a set of characteristics of this Spliterator and its
elements.
- characteristics() - Method in class java8.util.Spliterators.AbstractDoubleSpliterator
-
Returns a set of characteristics of this Spliterator and its
elements.
- characteristics() - Method in class java8.util.Spliterators.AbstractIntSpliterator
-
Returns a set of characteristics of this Spliterator and its
elements.
- characteristics() - Method in class java8.util.Spliterators.AbstractLongSpliterator
-
Returns a set of characteristics of this Spliterator and its
elements.
- characteristics() - Method in class java8.util.Spliterators.AbstractSpliterator
-
Returns a set of characteristics of this Spliterator and its
elements.
- characteristics() - Method in interface java8.util.stream.Collector
-
Returns a Set
of Collector.Characteristics
indicating
the characteristics of this Collector.
- close() - Method in interface java8.util.stream.BaseStream
-
Closes this stream, causing all close handlers for this stream pipeline
to be called.
- collect(Supplier<R>, ObjDoubleConsumer<R>, BiConsumer<R, R>) - Method in interface java8.util.stream.DoubleStream
-
- collect(Supplier<R>, ObjIntConsumer<R>, BiConsumer<R, R>) - Method in interface java8.util.stream.IntStream
-
- collect(Supplier<R>, ObjLongConsumer<R>, BiConsumer<R, R>) - Method in interface java8.util.stream.LongStream
-
- collect(Supplier<R>, BiConsumer<R, ? super T>, BiConsumer<R, R>) - Method in interface java8.util.stream.Stream
-
- collect(Collector<? super T, A, R>) - Method in interface java8.util.stream.Stream
-
Performs a
mutable
reduction operation on the elements of this stream using a
Collector
.
- collectingAndThen(Collector<T, A, R>, Function<R, RR>) - Static method in class java8.util.stream.Collectors
-
Adapts a Collector
to perform an additional finishing
transformation.
- Collector<T,A,R> - Interface in java8.util.stream
-
A
mutable reduction operation that
accumulates input elements into a mutable result container, optionally transforming
the accumulated result into a final representation after all input elements
have been processed.
- Collector.Characteristics - Enum in java8.util.stream
-
Characteristics indicating properties of a Collector
, which can
be used to optimize reduction implementations.
- Collectors - Class in java8.util.stream
-
Implementations of
Collector
that implement various useful reduction
operations, such as accumulating elements into collections, summarizing
elements according to various criteria, etc.
- combine(DoubleSummaryStatistics) - Method in class java8.util.DoubleSummaryStatistics
-
Combines the state of another DoubleSummaryStatistics
into this
one.
- combine(IntSummaryStatistics) - Method in class java8.util.IntSummaryStatistics
-
Combines the state of another IntSummaryStatistics
into this one.
- combine(LongSummaryStatistics) - Method in class java8.util.LongSummaryStatistics
-
Combines the state of another LongSummaryStatistics
into this
one.
- combiner() - Method in interface java8.util.stream.Collector
-
A function that accepts two partial results and merges them.
- commonPool() - Static method in class java8.util.concurrent.ForkJoinPool
-
Returns the common pool instance.
- Comparators - Class in java8.util
-
A place for static default implementations of the new Java 8
default interface methods and static interface methods in the
Comparator
interface.
- compare(int, int) - Static method in class java8.lang.Integers
-
Compares two int
values numerically.
- compare(long, long) - Static method in class java8.lang.Longs
-
Compares two long
values numerically.
- compare(T, T, Comparator<? super T>) - Static method in class java8.util.Objects
-
Returns 0 if the arguments are identical and c.compare(a, b)
otherwise.
- compareAndSetForkJoinTaskTag(short, short) - Method in class java8.util.concurrent.ForkJoinTask
-
Atomically conditionally sets the tag value for this task.
- compareAndSetPendingCount(int, int) - Method in class java8.util.concurrent.CountedCompleter
-
Sets (atomically) the pending count to the given count only if
it currently holds the given expected value.
- compareUnsigned(int, int) - Static method in class java8.lang.Integers
-
Compares two int
values numerically treating the values
as unsigned.
- compareUnsigned(long, long) - Static method in class java8.lang.Longs
-
Compares two long
values numerically treating the values
as unsigned.
- comparing(Function<? super T, ? extends U>, Comparator<? super U>) - Static method in class java8.util.Comparators
-
Accepts a function that extracts a sort key from a type T
, and
returns a Comparator<T>
that compares by that sort key using
the specified Comparator
.
- comparing(Function<? super T, ? extends U>) - Static method in class java8.util.Comparators
-
Accepts a function that extracts a Comparable
sort key from a type T
, and returns a Comparator<T>
that compares by that sort key.
- comparingDouble(ToDoubleFunction<? super T>) - Static method in class java8.util.Comparators
-
Accepts a function that extracts a double
sort key from a type
T
, and returns a Comparator<T>
that compares by that
sort key.
- comparingInt(ToIntFunction<? super T>) - Static method in class java8.util.Comparators
-
Accepts a function that extracts an int
sort key from a type
T
, and returns a Comparator<T>
that compares by that
sort key.
- comparingLong(ToLongFunction<? super T>) - Static method in class java8.util.Comparators
-
Accepts a function that extracts a long
sort key from a type
T
, and returns a Comparator<T>
that compares by that
sort key.
- CompletableFuture<T> - Class in java8.util.concurrent
-
A
Future
that may be explicitly completed (setting its
value and status), and may be used as a
CompletionStage
,
supporting dependent functions and actions that trigger upon its
completion.
- CompletableFuture() - Constructor for class java8.util.concurrent.CompletableFuture
-
Creates a new incomplete CompletableFuture.
- CompletableFuture.AsynchronousCompletionTask - Interface in java8.util.concurrent
-
A marker interface identifying asynchronous tasks produced by
async
methods.
- complete(T) - Method in class java8.util.concurrent.CompletableFuture
-
If not already completed, sets the value returned by
CompletableFuture.get()
and related methods to the given value.
- complete(T) - Method in class java8.util.concurrent.CountedCompleter
-
- complete(V) - Method in class java8.util.concurrent.ForkJoinTask
-
Completes this task, and if not already aborted or cancelled,
returning the given value as the result of subsequent
invocations of join
and related operations.
- completedFuture(U) - Static method in class java8.util.concurrent.CompletableFuture
-
Returns a new CompletableFuture that is already completed with
the given value.
- completeExceptionally(Throwable) - Method in class java8.util.concurrent.CompletableFuture
-
If not already completed, causes invocations of
CompletableFuture.get()
and related methods to throw the given exception.
- completeExceptionally(Throwable) - Method in class java8.util.concurrent.ForkJoinTask
-
Completes this task abnormally, and if not already aborted or
cancelled, causes it to throw the given exception upon
join
and related operations.
- CompletionException - Exception in java8.util.concurrent
-
Exception thrown when an error or other exception is encountered
in the course of completing a result or task.
- CompletionException() - Constructor for exception java8.util.concurrent.CompletionException
-
Constructs a CompletionException
with no detail message.
- CompletionException(String) - Constructor for exception java8.util.concurrent.CompletionException
-
Constructs a CompletionException
with the specified detail
message.
- CompletionException(String, Throwable) - Constructor for exception java8.util.concurrent.CompletionException
-
Constructs a CompletionException
with the specified detail
message and cause.
- CompletionException(Throwable) - Constructor for exception java8.util.concurrent.CompletionException
-
Constructs a CompletionException
with the specified cause.
- CompletionStage<T> - Interface in java8.util.concurrent
-
A stage of a possibly asynchronous computation, that performs an
action or computes a value when another CompletionStage completes.
- compose(DoubleUnaryOperator, DoubleUnaryOperator) - Static method in class java8.util.function.DoubleUnaryOperators
-
Returns a composed operator that first applies the before
operator to its input, and then applies the this_
operator to the result.
- compose(Function<? super T, ? extends R>, Function<? super V, ? extends T>) - Static method in class java8.util.function.Functions
-
Returns a composed function that first applies the before
function to its input, and then applies the this_
function to the result.
- compose(IntUnaryOperator, IntUnaryOperator) - Static method in class java8.util.function.IntUnaryOperators
-
Returns a composed operator that first applies the before
operator to its input, and then applies the this_
operator to the result.
- compose(LongUnaryOperator, LongUnaryOperator) - Static method in class java8.util.function.LongUnaryOperators
-
Returns a composed operator that first applies the before
operator to its input, and then applies the this_
operator to the result.
- compute() - Method in class java8.util.concurrent.CountedCompleter
-
The main computation performed by this task.
- compute() - Method in class java8.util.concurrent.RecursiveAction
-
The main computation performed by this task.
- compute() - Method in class java8.util.concurrent.RecursiveTask
-
The main computation performed by this task.
- compute(Map<K, V>, K, BiFunction<? super K, ? super V, ? extends V>) - Static method in class java8.util.Maps
-
Attempts to compute a mapping for the specified key and its current
mapped value (or null
if there is no current mapping).
- computeIfAbsent(Map<K, V>, K, Function<? super K, ? extends V>) - Static method in class java8.util.Maps
-
If the specified key is not already associated with a value (or is mapped
to null
), attempts to compute its value using the given mapping
function and enters it into the passed map
unless null
.
- computeIfAbsentConcurrent(ConcurrentMap<K, V>, K, Function<? super K, ? extends V>) - Static method in class java8.util.Maps
-
If the specified key is not already associated with a value (or is mapped
to null
), attempts to compute its value using the given mapping
function and enters it into the passed map
unless null
.
- computeIfPresent(Map<K, V>, K, BiFunction<? super K, ? super V, ? extends V>) - Static method in class java8.util.Maps
-
If the value for the specified key is present and non-null, attempts to
compute a new mapping given the key and its current mapped value.
- concat(DoubleStream, DoubleStream) - Static method in class java8.util.stream.DoubleStreams
-
Creates a lazily concatenated stream whose elements are all the
elements of the first stream followed by all the elements of the
second stream.
- concat(IntStream, IntStream) - Static method in class java8.util.stream.IntStreams
-
Creates a lazily concatenated stream whose elements are all the
elements of the first stream followed by all the elements of the
second stream.
- concat(LongStream, LongStream) - Static method in class java8.util.stream.LongStreams
-
Creates a lazily concatenated stream whose elements are all the
elements of the first stream followed by all the elements of the
second stream.
- concat(Stream<? extends T>, Stream<? extends T>) - Static method in class java8.util.stream.StreamSupport
-
Creates a lazily concatenated stream whose elements are all the
elements of the first stream followed by all the elements of the
second stream.
- CONCURRENT - Static variable in interface java8.util.Spliterator
-
Characteristic value signifying that the element source may be safely
concurrently modified (allowing additions, replacements, and/or removals)
by multiple threads without external synchronization.
- Consumer<T> - Interface in java8.util.function
-
Represents an operation that accepts a single input argument and returns no
result.
- Consumers - Class in java8.util.function
-
A place for static default implementations of the new Java 8
default interface methods and static interface methods in the
Consumer
interface.
- count() - Method in interface java8.util.stream.DoubleStream
-
Returns the count of elements in this stream.
- count() - Method in interface java8.util.stream.IntStream
-
Returns the count of elements in this stream.
- count() - Method in interface java8.util.stream.LongStream
-
Returns the count of elements in this stream.
- count() - Method in interface java8.util.stream.Stream
-
Returns the count of elements in this stream.
- CountedCompleter<T> - Class in java8.util.concurrent
-
A
ForkJoinTask
with a completion action performed when
triggered and there are no remaining pending actions.
- CountedCompleter(CountedCompleter<?>, int) - Constructor for class java8.util.concurrent.CountedCompleter
-
Creates a new CountedCompleter with the given completer
and initial pending count.
- CountedCompleter(CountedCompleter<?>) - Constructor for class java8.util.concurrent.CountedCompleter
-
Creates a new CountedCompleter with the given completer
and an initial pending count of zero.
- CountedCompleter() - Constructor for class java8.util.concurrent.CountedCompleter
-
Creates a new CountedCompleter with no completer
and an initial pending count of zero.
- counting() - Static method in class java8.util.stream.Collectors
-
Returns a Collector
accepting elements of type T
that
counts the number of input elements.