Uses of Interface
java.util.function.BinaryOperator
-
Packages that use BinaryOperator 软件包 描述 java.util 包含集合框架,一些国际化支持类,服务加载器,属性,随机数生成,字符串解析和扫描类,base64编码和解码,位数组和几个其他实用程序类。java.util.concurrent.atomic 一个小型工具包,支持对单个变量进行无锁线程安全编程。java.util.function 功能接口为lambda表达式和方法引用提供目标类型。java.util.stream 用于支持元素流上的功能样式操作的类,例如集合上的map-reduce转换。 -
-
Uses of BinaryOperator in java.util
Methods in java.util with parameters of type BinaryOperator 变量和类型 方法 描述 static <T> voidArrays. parallelPrefix(T[] array, int fromIndex, int toIndex, BinaryOperator<T> op)对于给定的数组子范围执行Arrays.parallelPrefix(Object[], BinaryOperator)。static <T> voidArrays. parallelPrefix(T[] array, BinaryOperator<T> op)使用提供的函数并行地累积给定数组的每个元素。 -
Uses of BinaryOperator in java.util.concurrent.atomic
Methods in java.util.concurrent.atomic with parameters of type BinaryOperator 变量和类型 方法 描述 VAtomicReference. accumulateAndGet(V x, BinaryOperator<V> accumulatorFunction)原子更新(具有由VarHandle.compareAndSet(java.lang.Object...)指定的记忆效应)当前值以及将给定函数应用于当前值和给定值的结果,返回更新的值。EAtomicReferenceArray. accumulateAndGet(int i, E x, BinaryOperator<E> accumulatorFunction)原子更新(具有由VarHandle.compareAndSet(java.lang.Object...)指定的记忆效应)索引i处的元素,其中将给定函数应用于当前值和给定值的结果,返回更新的值。VAtomicReferenceFieldUpdater. accumulateAndGet(T obj, V x, BinaryOperator<V> accumulatorFunction)原子更新(具有由VarHandle.compareAndSet(java.lang.Object...)指定的记忆效应)由此更新程序管理的给定对象的字段,以及将给定函数应用于当前值和给定值的结果,返回更新的值。VAtomicReference. getAndAccumulate(V x, BinaryOperator<V> accumulatorFunction)原子更新(具有VarHandle.compareAndSet(java.lang.Object...)指定的记忆效应)当前值以及将给定函数应用于当前值和给定值的结果,返回先前的值。EAtomicReferenceArray. getAndAccumulate(int i, E x, BinaryOperator<E> accumulatorFunction)在原子上更新(具有由VarHandle.compareAndSet(java.lang.Object...)指定的记忆效应)索引i处的元素以及将给定函数应用于当前值和给定值的结果,返回先前的值。VAtomicReferenceFieldUpdater. getAndAccumulate(T obj, V x, BinaryOperator<V> accumulatorFunction)原子地更新(具有由VarHandle.compareAndSet(java.lang.Object...)指定的记忆效应)由此更新程序管理的给定对象的字段,以及将给定函数应用于当前值和给定值的结果,返回先前的值。 -
Uses of BinaryOperator in java.util.function
Methods in java.util.function that return BinaryOperator 变量和类型 方法 描述 static <T> BinaryOperator<T>BinaryOperator. maxBy(Comparator<? super T> comparator)返回BinaryOperator,它根据指定的Comparator返回两个元素中的较大者。static <T> BinaryOperator<T>BinaryOperator. minBy(Comparator<? super T> comparator)返回BinaryOperator,它根据指定的Comparator返回两个元素中较小的Comparator。 -
Uses of BinaryOperator in java.util.stream
Methods in java.util.stream that return BinaryOperator 变量和类型 方法 描述 BinaryOperator<A>Collector. combiner()一个接受两个部分结果并合并它们的函数。Methods in java.util.stream with parameters of type BinaryOperator 变量和类型 方法 描述 static <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)返回一个新Collector由给定的描述supplier,accumulator,combiner和finisher功能。static <T,R>
Collector<T,R,R>Collector. of(Supplier<R> supplier, BiConsumer<R,T> accumulator, BinaryOperator<R> combiner, Collector.Characteristics... characteristics)返回一个新Collector由给定的描述supplier,accumulator和combiner功能。Optional<T>Stream. reduce(BinaryOperator<T> accumulator)TStream. reduce(T identity, BinaryOperator<T> accumulator)使用提供的标识值和 associative累积函数对此流的元素执行 reduction ,并返回减少的值。<U> UStream. reduce(U identity, BiFunction<U,? super T,U> accumulator, BinaryOperator<U> combiner)使用提供的标识,累积和组合功能对此流的元素执行 reduction 。static <T> Collector<T,?,Optional<T>>Collectors. reducing(BinaryOperator<T> op)返回Collector,它在指定的BinaryOperator下执行其输入元素的减少。static <T> Collector<T,?,T>Collectors. reducing(T identity, BinaryOperator<T> op)返回Collector,使用提供的标识在指定的BinaryOperator下执行其输入元素的减少。static <T,U>
Collector<T,?,U>Collectors. reducing(U identity, Function<? super T,? extends U> mapper, BinaryOperator<U> op)返回Collector,它在指定的映射函数和BinaryOperator下执行其输入元素的BinaryOperator。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)返回并发Collector,它将元素累积到ConcurrentMap其键和值是将提供的映射函数应用于输入元素的结果。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)返回并发Collector,它将元素累积到ConcurrentMap其键和值是将提供的映射函数应用于输入元素的结果。static <T,K,U>
Collector<T,?,Map<K,U>>Collectors. toMap(Function<? super T,? extends K> keyMapper, Function<? super T,? extends U> valueMapper, BinaryOperator<U> mergeFunction)返回Collector,它将元素累积到Map其键和值是将提供的映射函数应用于输入元素的结果。static <T,K,U,M extends Map<K,U>>
Collector<T,?,M>Collectors. toMap(Function<? super T,? extends K> keyMapper, Function<? super T,? extends U> valueMapper, BinaryOperator<U> mergeFunction, Supplier<M> mapFactory)返回Collector,它将元素累积到Map其键和值是将提供的映射函数应用于输入元素的结果。static <T,K,U>
Collector<T,?,Map<K,U>>Collectors. toUnmodifiableMap(Function<? super T,? extends K> keyMapper, Function<? super T,? extends U> valueMapper, BinaryOperator<U> mergeFunction)返回Collector,它将输入元素累积到 unmodifiable Map中 ,其键和值是将提供的映射函数应用于输入元素的结果。
-