| Package | Description |
|---|---|
| java.util.concurrent.atomic |
A small toolkit of classes that support lock-free thread-safe programming on single variables.
|
| java.util.function |
Functional interfaces provide target types for lambda expressions and method references.
|
| java.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 |
|---|---|
long |
AtomicLongArray.getAndUpdate(int i, LongUnaryOperator
Atomically updates the element at index
i with the results of applying the given function, returning the previous value.
|
long |
AtomicLong.getAndUpdate(LongUnaryOperator
Atomically updates the current value with the results of applying the given function, returning the previous value.
|
long |
AtomicLongFieldUpdater.getAndUpdate(T obj, LongUnaryOperator
Atomically updates the field of the given object managed by this updater with the results of applying the given function, returning the previous value.
|
long |
AtomicLongArray.updateAndGet(int i, LongUnaryOperator
Atomically updates the element at index
i with the results of applying the given function, returning the updated value.
|
long |
AtomicLong.updateAndGet(LongUnaryOperator
Atomically updates the current value with the results of applying the given function, returning the updated value.
|
long |
AtomicLongFieldUpdater.updateAndGet(T obj, LongUnaryOperator
Atomically updates the field of the given object managed by this updater with the results of applying the given function, returning the updated value.
|
| Modifier and Type | Method and Description |
|---|---|
default LongUnaryOperator |
LongUnaryOperator.andThen(LongUnaryOperator
Returns a composed operator that first applies this operator to its input, and then applies the
after operator to the result.
|
default LongUnaryOperator |
LongUnaryOperator.compose(LongUnaryOperator
Returns a composed operator that first applies the
before operator to its input, and then applies this operator to the result.
|
static LongUnaryOperator |
LongUnaryOperator.identity()
Returns a unary operator that always returns its input argument.
|
| Modifier and Type | Method and Description |
|---|---|
default LongUnaryOperator |
LongUnaryOperator.andThen(LongUnaryOperator
Returns a composed operator that first applies this operator to its input, and then applies the
after operator to the result.
|
default LongUnaryOperator |
LongUnaryOperator.compose(LongUnaryOperator
Returns a composed operator that first applies the
before operator to its input, and then applies this operator to the result.
|
| Modifier and Type | Method and Description |
|---|---|
static LongStream |
LongStream.iterate(long seed, LongUnaryOperator
Returns an infinite sequential ordered
LongStream 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.
|
LongStream |
LongStream.map(LongUnaryOperator
Returns a stream consisting of the results of applying the given function to the elements of this stream.
|