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.function |
Functional interfaces provide target types for lambda expressions
and method references.
|
java8.util.stream |
Classes to support functional-style operations on streams of elements, such
as map-reduce transformations on collections.
|
Modifier and Type | Method and Description |
---|---|
static <E> void |
Lists.replaceAll(List<E> list,
UnaryOperator<E> operator)
Replaces each element of the passed list with the result of applying the
operator to that element.
|
Modifier and Type | Method and Description |
---|---|
static <T> UnaryOperator<T> |
UnaryOperators.identity()
Returns a unary operator that always returns its input argument.
|
Modifier and Type | Method and Description |
---|---|
static <T,S extends T> |
RefStreams.iterate(S seed,
Predicate<S> hasNext,
UnaryOperator<S> next)
Returns a sequential ordered
Stream produced by iterative
application of the given next function to an initial element,
conditioned on satisfying the given hasNext predicate. |
static <T,S extends T> |
RefStreams.iterate(S seed,
UnaryOperator<S> f)
Returns an infinite sequential ordered
Stream produced by iterative
application of a function f to an initial element seed ,
producing a Stream consisting of seed , f(seed) ,
f(f(seed)) , etc. |
Copyright © 2016. All rights reserved.