Uses of Interface
java.util.function.IntUnaryOperator
Package
Description
Contains the collections framework, some internationalization support classes,
a service loader, properties, random number generation, string parsing
and scanning classes, base64 encoding and decoding, a bit array, and
several miscellaneous utility classes.
A small toolkit of classes that support lock-free thread-safe
programming on single variables.
Functional interfaces provide target types for lambda expressions
and method references.
Classes to support functional-style operations on streams of elements, such
as map-reduce transformations on collections.
Incubating Feature. Will be removed in a future release.
-
Uses of IntUnaryOperator in java.util
Modifier and TypeMethodDescriptionstatic void
Arrays.parallelSetAll
(int[] array, IntUnaryOperator generator) Set all elements of the specified array, in parallel, using the provided generator function to compute each element.static void
Arrays.setAll
(int[] array, IntUnaryOperator generator) Set all elements of the specified array, using the provided generator function to compute each element. -
Uses of IntUnaryOperator in java.util.concurrent.atomic
Modifier and TypeMethodDescriptionfinal int
AtomicInteger.getAndUpdate
(IntUnaryOperator updateFunction) Atomically updates (with memory effects as specified byVarHandle.compareAndSet(java.lang.Object...)
) the current value with the results of applying the given function, returning the previous value.final int
AtomicIntegerArray.getAndUpdate
(int i, IntUnaryOperator updateFunction) Atomically updates (with memory effects as specified byVarHandle.compareAndSet(java.lang.Object...)
) the element at indexi
with the results of applying the given function, returning the previous value.final int
AtomicIntegerFieldUpdater.getAndUpdate
(T obj, IntUnaryOperator updateFunction) Atomically updates (with memory effects as specified byVarHandle.compareAndSet(java.lang.Object...)
) the field of the given object managed by this updater with the results of applying the given function, returning the previous value.final int
AtomicInteger.updateAndGet
(IntUnaryOperator updateFunction) Atomically updates (with memory effects as specified byVarHandle.compareAndSet(java.lang.Object...)
) the current value with the results of applying the given function, returning the updated value.final int
AtomicIntegerArray.updateAndGet
(int i, IntUnaryOperator updateFunction) Atomically updates (with memory effects as specified byVarHandle.compareAndSet(java.lang.Object...)
) the element at indexi
with the results of applying the given function, returning the updated value.final int
AtomicIntegerFieldUpdater.updateAndGet
(T obj, IntUnaryOperator updateFunction) Atomically updates (with memory effects as specified byVarHandle.compareAndSet(java.lang.Object...)
) the field of the given object managed by this updater with the results of applying the given function, returning the updated value. -
Uses of IntUnaryOperator in java.util.function
Modifier and TypeMethodDescriptiondefault IntUnaryOperator
IntUnaryOperator.andThen
(IntUnaryOperator after) Returns a composed operator that first applies this operator to its input, and then applies theafter
operator to the result.default IntUnaryOperator
IntUnaryOperator.compose
(IntUnaryOperator before) Returns a composed operator that first applies thebefore
operator to its input, and then applies this operator to the result.static IntUnaryOperator
IntUnaryOperator.identity()
Returns a unary operator that always returns its input argument.Modifier and TypeMethodDescriptiondefault IntUnaryOperator
IntUnaryOperator.andThen
(IntUnaryOperator after) Returns a composed operator that first applies this operator to its input, and then applies theafter
operator to the result.default IntUnaryOperator
IntUnaryOperator.compose
(IntUnaryOperator before) Returns a composed operator that first applies thebefore
operator to its input, and then applies this operator to the result. -
Uses of IntUnaryOperator in java.util.stream
Modifier and TypeMethodDescriptionstatic IntStream
IntStream.iterate
(int seed, IntPredicate hasNext, IntUnaryOperator next) Returns a sequential orderedIntStream
produced by iterative application of the givennext
function to an initial element, conditioned on satisfying the givenhasNext
predicate.static IntStream
IntStream.iterate
(int seed, IntUnaryOperator f) Returns an infinite sequential orderedIntStream
produced by iterative application of a functionf
to an initial elementseed
, producing aStream
consisting ofseed
,f(seed)
,f(f(seed))
, etc.IntStream.map
(IntUnaryOperator mapper) Returns a stream consisting of the results of applying the given function to the elements of this stream. -
Uses of IntUnaryOperator in jdk.incubator.vector
Modifier and TypeMethodDescriptionstatic <E> VectorShuffle<E>
VectorShuffle.fromOp
(VectorSpecies<E> species, IntUnaryOperator fn) Creates a shuffle for a given species from the successive values of an operator applied to the range[0..VLENGTH-1]
.VectorSpecies.shuffleFromOp
(IntUnaryOperator fn) Creates a shuffle for this species from the successive values of an operator applied to the range[0..VLENGTH-1]
.