Uses of Interface
java.util.function.BinaryOperator
Packages that use BinaryOperator
Package
Description
Provides for system input and output through data streams,
serialization and the file system.
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.
-
Uses of BinaryOperator in java.io
Methods in java.io that return BinaryOperatorModifier and TypeMethodDescriptionstatic BinaryOperator<ObjectInputFilter>ObjectInputFilter.Config.getSerialFilterFactory()Returns the JVM-wide deserialization filter factory.Methods in java.io with parameters of type BinaryOperatorModifier and TypeMethodDescriptionstatic voidObjectInputFilter.Config.setSerialFilterFactory(BinaryOperator<ObjectInputFilter> filterFactory) -
Uses of BinaryOperator in java.util
Methods in java.util with parameters of type BinaryOperatorModifier and TypeMethodDescriptionstatic <T> voidArrays.parallelPrefix(T[] array, int fromIndex, int toIndex, BinaryOperator<T> op) PerformsArrays.parallelPrefix(Object[], BinaryOperator)for the given subrange of the array.static <T> voidArrays.parallelPrefix(T[] array, BinaryOperator<T> op) Cumulates, in parallel, each element of the given array in place, using the supplied function. -
Uses of BinaryOperator in java.util.concurrent.atomic
Methods in java.util.concurrent.atomic with parameters of type BinaryOperatorModifier and TypeMethodDescriptionfinal VAtomicReference.accumulateAndGet(V x, BinaryOperator<V> accumulatorFunction) Atomically updates (with memory effects as specified byVarHandle.compareAndSet(java.lang.Object...)) the current value with the results of applying the given function to the current and given values, returning the updated value.final EAtomicReferenceArray.accumulateAndGet(int i, E x, BinaryOperator<E> accumulatorFunction) Atomically updates (with memory effects as specified byVarHandle.compareAndSet(java.lang.Object...)) the element at indexiwith the results of applying the given function to the current and given values, returning the updated value.final VAtomicReferenceFieldUpdater.accumulateAndGet(T obj, V x, BinaryOperator<V> accumulatorFunction) 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 to the current and given values, returning the updated value.final VAtomicReference.getAndAccumulate(V x, BinaryOperator<V> accumulatorFunction) Atomically updates (with memory effects as specified byVarHandle.compareAndSet(java.lang.Object...)) the current value with the results of applying the given function to the current and given values, returning the previous value.final EAtomicReferenceArray.getAndAccumulate(int i, E x, BinaryOperator<E> accumulatorFunction) Atomically updates (with memory effects as specified byVarHandle.compareAndSet(java.lang.Object...)) the element at indexiwith the results of applying the given function to the current and given values, returning the previous value.final VAtomicReferenceFieldUpdater.getAndAccumulate(T obj, V x, BinaryOperator<V> accumulatorFunction) 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 to the current and given values, returning the previous value. -
Uses of BinaryOperator in java.util.function
Methods in java.util.function that return BinaryOperatorModifier and TypeMethodDescriptionstatic <T> BinaryOperator<T>BinaryOperator.maxBy(Comparator<? super T> comparator) Returns aBinaryOperatorwhich returns the greater of two elements according to the specifiedComparator.static <T> BinaryOperator<T>BinaryOperator.minBy(Comparator<? super T> comparator) Returns aBinaryOperatorwhich returns the lesser of two elements according to the specifiedComparator. -
Uses of BinaryOperator in java.util.stream
Methods in java.util.stream that return BinaryOperatorModifier and TypeMethodDescriptionCollector.combiner()A function that accepts two partial results and merges them.Methods in java.util.stream with parameters of type BinaryOperatorModifier and TypeMethodDescriptionstatic <T,A, R> Collector<T, A, R> Collector.of(Supplier<A> supplier, BiConsumer<A, T> accumulator, BinaryOperator<A> combiner, Function<A, R> finisher, Collector.Characteristics... characteristics) Returns a newCollectordescribed by the givensupplier,accumulator,combiner, andfinisherfunctions.static <T,R> Collector<T, R, R> Collector.of(Supplier<R> supplier, BiConsumer<R, T> accumulator, BinaryOperator<R> combiner, Collector.Characteristics... characteristics) Returns a newCollectordescribed by the givensupplier,accumulator, andcombinerfunctions.Stream.reduce(BinaryOperator<T> accumulator) Performs a reduction on the elements of this stream, using an associative accumulation function, and returns anOptionaldescribing the reduced value, if any.Stream.reduce(T identity, BinaryOperator<T> accumulator) Performs a reduction on the elements of this stream, using the provided identity value and an associative accumulation function, and returns the reduced value.<U> UStream.reduce(U identity, BiFunction<U, ? super T, U> accumulator, BinaryOperator<U> combiner) Performs a reduction on the elements of this stream, using the provided identity, accumulation and combining functions.Collectors.reducing(BinaryOperator<T> op) Returns aCollectorwhich performs a reduction of its input elements under a specifiedBinaryOperator.static <T> Collector<T,?, T> Collectors.reducing(T identity, BinaryOperator<T> op) Returns aCollectorwhich performs a reduction of its input elements under a specifiedBinaryOperatorusing the provided identity.static <T,U> Collector<T, ?, U> Collectors.reducing(U identity, Function<? super T, ? extends U> mapper, BinaryOperator<U> op) Returns aCollectorwhich performs a reduction of its input elements under a specified mapping function andBinaryOperator.static <T,K, U> Collector<T, ?, ConcurrentMap<K, U>> Collectors.toConcurrentMap(Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends U> valueMapper, BinaryOperator<U> mergeFunction) Returns a concurrentCollectorthat accumulates elements into aConcurrentMapwhose keys and values are the result of applying the provided mapping functions to the input elements.static <T,K, U, M extends ConcurrentMap<K, U>>
Collector<T,?, M> Collectors.toConcurrentMap(Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends U> valueMapper, BinaryOperator<U> mergeFunction, Supplier<M> mapFactory) Returns a concurrentCollectorthat accumulates elements into aConcurrentMapwhose keys and values are the result of applying the provided mapping functions to the input elements.Collectors.toMap(Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends U> valueMapper, BinaryOperator<U> mergeFunction) Returns aCollectorthat accumulates elements into aMapwhose keys and values are the result of applying the provided mapping functions to the input elements.Collectors.toMap(Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends U> valueMapper, BinaryOperator<U> mergeFunction, Supplier<M> mapFactory) Returns aCollectorthat accumulates elements into aMapwhose keys and values are the result of applying the provided mapping functions to the input elements.Collectors.toUnmodifiableMap(Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends U> valueMapper, BinaryOperator<U> mergeFunction) Returns aCollectorthat accumulates the input elements into an unmodifiable Map, whose keys and values are the result of applying the provided mapping functions to the input elements.