Package | Description |
---|---|
com.landawn.abacus.util | |
com.landawn.abacus.util.function | |
com.landawn.abacus.util.stream |
Modifier and Type | Field and Description |
---|---|
static Supplier<java.util.LinkedHashMap<java.lang.String,java.lang.Object>> |
Fn.SUPPLIER_OF_LINKED_HASH_MAP |
static Supplier<java.util.Map<java.lang.String,java.lang.Object>> |
Fn.SUPPLIER_OF_MAP |
Modifier and Type | Method and Description |
---|---|
static Supplier<java.lang.Boolean> |
Fn.and(Supplier<java.lang.Boolean> first,
Supplier<java.lang.Boolean> second) |
static Supplier<java.lang.Boolean> |
Fn.and(Supplier<java.lang.Boolean> first,
Supplier<java.lang.Boolean> second,
Supplier<java.lang.Boolean> third) |
static <T> Supplier<java.util.ArrayDeque<T>> |
Fn.Suppliers.ofArrayDeque() |
static <K,V> Supplier<BiMap<K,V>> |
Fn.Suppliers.ofBiMap() |
static Supplier<BooleanList> |
Fn.Suppliers.ofBooleanList() |
static Supplier<ByteList> |
Fn.Suppliers.ofByteList() |
static Supplier<CharList> |
Fn.Suppliers.ofCharList() |
static <K,V> Supplier<java.util.concurrent.ConcurrentHashMap<K,V>> |
Fn.Suppliers.ofConcurrentHashMap() |
static <T> Supplier<java.util.concurrent.ConcurrentLinkedQueue<T>> |
Fn.Suppliers.ofConcurrentLinkedQueue() |
static <K,V> Supplier<java.util.concurrent.ConcurrentMap<K,V>> |
Fn.Suppliers.ofConcurrentMap() |
static <T> Supplier<java.util.Deque<T>> |
Fn.Suppliers.ofDeque() |
static Supplier<DoubleList> |
Fn.Suppliers.ofDoubleList() |
static Supplier<boolean[]> |
Fn.Suppliers.ofEmptyBooleanArray() |
static Supplier<byte[]> |
Fn.Suppliers.ofEmptyByteArray() |
static Supplier<char[]> |
Fn.Suppliers.ofEmptyCharArray() |
static Supplier<double[]> |
Fn.Suppliers.ofEmptyDoubleArray() |
static Supplier<float[]> |
Fn.Suppliers.ofEmptyFloatArray() |
static Supplier<int[]> |
Fn.Suppliers.ofEmptyIntArray() |
static Supplier<long[]> |
Fn.Suppliers.ofEmptyLongArray() |
static Supplier<java.lang.Object[]> |
Fn.Suppliers.ofEmptyObjectArray() |
static Supplier<short[]> |
Fn.Suppliers.ofEmptyShortArray() |
static Supplier<java.lang.String[]> |
Fn.Suppliers.ofEmptyStringArray() |
static Supplier<FloatList> |
Fn.Suppliers.ofFloatList() |
static Supplier<java.lang.String> |
Fn.Suppliers.ofGUID() |
static Supplier<IntList> |
Fn.Suppliers.ofIntList() |
static <T> Supplier<java.util.concurrent.LinkedBlockingQueue<T>> |
Fn.Suppliers.ofLinkedBlockingQueue() |
static <K,V> Supplier<java.util.LinkedHashMap<K,V>> |
Fn.Suppliers.ofLinkedHashMap() |
static <T> Supplier<java.util.LinkedHashSet<T>> |
Fn.Suppliers.ofLinkedHashSet() |
static <T> Supplier<java.util.LinkedList<T>> |
Fn.Suppliers.ofLinkedList() |
static <T> Supplier<java.util.List<T>> |
Fn.Suppliers.ofList() |
static <K,E> Supplier<ListMultimap<K,E>> |
Fn.Suppliers.ofListMultimap() |
static Supplier<LongList> |
Fn.Suppliers.ofLongList() |
static <T> Supplier<LongMultiset<T>> |
Fn.Suppliers.ofLongMultiset() |
static <K,V> Supplier<java.util.Map<K,V>> |
Fn.Suppliers.ofMap() |
static <T> Supplier<Multiset<T>> |
Fn.Suppliers.ofMultiset() |
static <K,V> Supplier<java.util.NavigableMap<K,V>> |
Fn.Suppliers.ofNavigableMap() |
static <T> Supplier<java.util.NavigableSet<T>> |
Fn.Suppliers.ofNavigableSet() |
static <T> Supplier<java.util.PriorityQueue<T>> |
Fn.Suppliers.ofPriorityQueue() |
static <T> Supplier<java.util.Queue<T>> |
Fn.Suppliers.ofQueue() |
static <T> Supplier<java.util.Set<T>> |
Fn.Suppliers.ofSet() |
static <K,E> Supplier<SetMultimap<K,E>> |
Fn.Suppliers.ofSetMultimap() |
static Supplier<ShortList> |
Fn.Suppliers.ofShortList() |
static <K,V> Supplier<java.util.SortedMap<K,V>> |
Fn.Suppliers.ofSortedMap() |
static <T> Supplier<java.util.SortedSet<T>> |
Fn.Suppliers.ofSortedSet() |
static Supplier<java.lang.StringBuilder> |
Fn.Suppliers.ofStringBuilder() |
static <K,V> Supplier<java.util.TreeMap<K,V>> |
Fn.Suppliers.ofTreeMap() |
static <T> Supplier<java.util.TreeSet<T>> |
Fn.Suppliers.ofTreeSet() |
static Supplier<java.lang.String> |
Fn.Suppliers.ofUUID() |
static Supplier<java.lang.Boolean> |
Fn.or(Supplier<java.lang.Boolean> first,
Supplier<java.lang.Boolean> second) |
static Supplier<java.lang.Boolean> |
Fn.or(Supplier<java.lang.Boolean> first,
Supplier<java.lang.Boolean> second,
Supplier<java.lang.Boolean> third) |
Modifier and Type | Method and Description |
---|---|
static Supplier<java.lang.Boolean> |
Fn.and(Supplier<java.lang.Boolean> first,
Supplier<java.lang.Boolean> second) |
static Supplier<java.lang.Boolean> |
Fn.and(Supplier<java.lang.Boolean> first,
Supplier<java.lang.Boolean> second) |
static Supplier<java.lang.Boolean> |
Fn.and(Supplier<java.lang.Boolean> first,
Supplier<java.lang.Boolean> second,
Supplier<java.lang.Boolean> third) |
static Supplier<java.lang.Boolean> |
Fn.and(Supplier<java.lang.Boolean> first,
Supplier<java.lang.Boolean> second,
Supplier<java.lang.Boolean> third) |
static Supplier<java.lang.Boolean> |
Fn.and(Supplier<java.lang.Boolean> first,
Supplier<java.lang.Boolean> second,
Supplier<java.lang.Boolean> third) |
static <R> R |
Try.call(java.util.concurrent.Callable<R> cmd,
Predicate<? super java.lang.Exception> predicate,
Supplier<R> supplier) |
static <R> R |
Try.call(java.util.concurrent.Callable<R> cmd,
Supplier<R> supplier) |
<R> R |
Try.call(Try.Function<? super T,R,? extends java.lang.Exception> cmd,
Predicate<? super java.lang.Exception> predicate,
Supplier<R> supplier) |
<R> R |
Try.call(Try.Function<? super T,R,? extends java.lang.Exception> cmd,
Supplier<R> supplier) |
<R> R |
Seq.collect(Supplier<R> supplier,
BiConsumer<R,? super T> accumulator) |
static <T,K,M extends java.util.Map<K,java.lang.Long>> |
Fn.countingBy(Function<? super T,? extends K> classifier,
Supplier<M> mapFactory) |
static <T,K,M extends java.util.Map<K,java.lang.Integer>> |
Fn.countingIntBy(Function<? super T,? extends K> classifier,
Supplier<M> mapFactory) |
static <T> T |
Fn.get(Supplier<T> supplier) |
static <T,K,A,D,M extends java.util.Map<K,D>> |
Fn.groupingBy(Function<? super T,? extends K> classifier,
Collector<? super T,A,D> downstream,
Supplier<M> mapFactory) |
static <T,K,M extends java.util.Map<K,java.util.List<T>>> |
Fn.groupingBy(Function<? super T,? extends K> classifier,
Supplier<M> mapFactory) |
<K,U,M extends java.util.Map<K,java.util.List<U>>> |
Seq.groupTo(Function<? super T,? extends K> keyExtractor,
Function<? super T,? extends U> valueMapper,
Supplier<M> mapFactory) |
<K,M extends java.util.Map<K,java.util.List<T>>> |
Seq.groupTo(Function<? super T,? extends K> classifier,
Supplier<M> mapFactory) |
static Supplier<java.lang.Boolean> |
Fn.or(Supplier<java.lang.Boolean> first,
Supplier<java.lang.Boolean> second) |
static Supplier<java.lang.Boolean> |
Fn.or(Supplier<java.lang.Boolean> first,
Supplier<java.lang.Boolean> second) |
static Supplier<java.lang.Boolean> |
Fn.or(Supplier<java.lang.Boolean> first,
Supplier<java.lang.Boolean> second,
Supplier<java.lang.Boolean> third) |
static Supplier<java.lang.Boolean> |
Fn.or(Supplier<java.lang.Boolean> first,
Supplier<java.lang.Boolean> second,
Supplier<java.lang.Boolean> third) |
static Supplier<java.lang.Boolean> |
Fn.or(Supplier<java.lang.Boolean> first,
Supplier<java.lang.Boolean> second,
Supplier<java.lang.Boolean> third) |
T |
Any.orElseGet(Supplier<? extends T> other)
Return the value if present, otherwise invoke
other and return the result of that invocation. |
T |
Optional.orElseGet(Supplier<? extends T> other)
Return the value if present, otherwise invoke
other and return
the result of that invocation. |
<X extends java.lang.Throwable> |
Any.orElseThrow(Supplier<? extends X> exceptionSupplier)
Return the contained value, if present, otherwise throw an exception to be created by the provided supplier.
|
<X extends java.lang.Throwable> |
Optional.orElseThrow(Supplier<? extends X> exceptionSupplier)
Return the contained value, if present, otherwise throw an exception
to be created by the provided supplier.
|
<X extends java.lang.Throwable> |
OptionalBoolean.orElseThrow(Supplier<X> exceptionSupplier)
Return the contained value, if present, otherwise throw an exception
to be created by the provided supplier.
|
<X extends java.lang.Throwable> |
OptionalByte.orElseThrow(Supplier<X> exceptionSupplier)
Return the contained value, if present, otherwise throw an exception
to be created by the provided supplier.
|
<X extends java.lang.Throwable> |
OptionalChar.orElseThrow(Supplier<X> exceptionSupplier)
Return the contained value, if present, otherwise throw an exception
to be created by the provided supplier.
|
<X extends java.lang.Throwable> |
OptionalDouble.orElseThrow(Supplier<X> exceptionSupplier)
Return the contained value, if present, otherwise throw an exception
to be created by the provided supplier.
|
<X extends java.lang.Throwable> |
OptionalFloat.orElseThrow(Supplier<X> exceptionSupplier)
Return the contained value, if present, otherwise throw an exception
to be created by the provided supplier.
|
<X extends java.lang.Throwable> |
OptionalInt.orElseThrow(Supplier<X> exceptionSupplier)
Return the contained value, if present, otherwise throw an exception
to be created by the provided supplier.
|
<X extends java.lang.Throwable> |
OptionalLong.orElseThrow(Supplier<X> exceptionSupplier)
Return the contained value, if present, otherwise throw an exception
to be created by the provided supplier.
|
<X extends java.lang.Throwable> |
OptionalShort.orElseThrow(Supplier<X> exceptionSupplier)
Return the contained value, if present, otherwise throw an exception
to be created by the provided supplier.
|
T |
Any.orGetIfNull(Supplier<? extends T> other)
Return the value is not null, otherwise invoke
other and return the result of that invocation. |
<X extends java.lang.Throwable> |
Any.orThrowIfNull(Supplier<? extends X> exceptionSupplier)
Return the value is not null, otherwise throw an exception to be created by the provided supplier.
|
static <T,C extends java.util.Collection<T>> |
Iterators.toCollection(java.util.Iterator<? extends T> iter,
Supplier<C> collectionFactory) |
static <K,V,M extends java.util.Map<K,V>> |
Fn.toMap(BinaryOperator<V> mergeFunction,
Supplier<M> mapFactory) |
<K,U,M extends java.util.Map<K,U>> |
BooleanList.toMap(BooleanFunction<? extends K> keyExtractor,
BooleanFunction<? extends U> valueMapper,
BinaryOperator<U> mergeFunction,
Supplier<M> mapFactory) |
<K,U,M extends java.util.Map<K,U>> |
BooleanList.toMap(BooleanFunction<? extends K> keyExtractor,
BooleanFunction<? extends U> valueMapper,
Supplier<M> mapFactory) |
<K,A,D,M extends java.util.Map<K,D>> |
BooleanList.toMap(BooleanFunction<? extends K> classifier,
Collector<java.lang.Boolean,A,D> downstream,
Supplier<M> mapFactory) |
<K,U,M extends java.util.Map<K,U>> |
ByteList.toMap(ByteFunction<? extends K> keyExtractor,
ByteFunction<? extends U> valueMapper,
BinaryOperator<U> mergeFunction,
Supplier<M> mapFactory) |
<K,U,M extends java.util.Map<K,U>> |
ByteList.toMap(ByteFunction<? extends K> keyExtractor,
ByteFunction<? extends U> valueMapper,
Supplier<M> mapFactory) |
<K,A,D,M extends java.util.Map<K,D>> |
ByteList.toMap(ByteFunction<? extends K> classifier,
Collector<java.lang.Byte,A,D> downstream,
Supplier<M> mapFactory) |
<K,U,M extends java.util.Map<K,U>> |
CharList.toMap(CharFunction<? extends K> keyExtractor,
CharFunction<? extends U> valueMapper,
BinaryOperator<U> mergeFunction,
Supplier<M> mapFactory) |
<K,U,M extends java.util.Map<K,U>> |
CharList.toMap(CharFunction<? extends K> keyExtractor,
CharFunction<? extends U> valueMapper,
Supplier<M> mapFactory) |
<K,A,D,M extends java.util.Map<K,D>> |
CharList.toMap(CharFunction<? extends K> classifier,
Collector<java.lang.Character,A,D> downstream,
Supplier<M> mapFactory) |
<K,A,D,M extends java.util.Map<K,D>> |
DoubleList.toMap(DoubleFunction<? extends K> classifier,
Collector<java.lang.Double,A,D> downstream,
Supplier<M> mapFactory) |
<K,U,M extends java.util.Map<K,U>> |
DoubleList.toMap(DoubleFunction<? extends K> keyExtractor,
DoubleFunction<? extends U> valueMapper,
BinaryOperator<U> mergeFunction,
Supplier<M> mapFactory) |
<K,U,M extends java.util.Map<K,U>> |
DoubleList.toMap(DoubleFunction<? extends K> keyExtractor,
DoubleFunction<? extends U> valueMapper,
Supplier<M> mapFactory) |
<K,A,D,M extends java.util.Map<K,D>> |
FloatList.toMap(FloatFunction<? extends K> classifier,
Collector<java.lang.Float,A,D> downstream,
Supplier<M> mapFactory) |
<K,U,M extends java.util.Map<K,U>> |
FloatList.toMap(FloatFunction<? extends K> keyExtractor,
FloatFunction<? extends U> valueMapper,
BinaryOperator<U> mergeFunction,
Supplier<M> mapFactory) |
<K,U,M extends java.util.Map<K,U>> |
FloatList.toMap(FloatFunction<? extends K> keyExtractor,
FloatFunction<? extends U> valueMapper,
Supplier<M> mapFactory) |
<K,A,D,M extends java.util.Map<K,D>> |
Seq.toMap(Function<? super T,? extends K> classifier,
Collector<? super T,A,D> downstream,
Supplier<M> mapFactory) |
<K,U,M extends java.util.Map<K,U>> |
Seq.toMap(Function<? super T,? extends K> keyExtractor,
Function<? super T,? extends U> valueMapper,
BinaryOperator<U> mergeFunction,
Supplier<M> mapFactory) |
static <T,K,U,M extends java.util.Map<K,U>> |
Fn.toMap(Function<? super T,? extends K> keyExtractor,
Function<? super T,? extends U> valueMapper,
BinaryOperator<U> mergeFunction,
Supplier<M> mapFactory) |
<K,U,M extends java.util.Map<K,U>> |
Seq.toMap(Function<? super T,? extends K> keyExtractor,
Function<? super T,? extends U> valueMapper,
Supplier<M> mapFactory) |
static <T,K,U,M extends java.util.Map<K,U>> |
Fn.toMap(Function<? super T,? extends K> keyExtractor,
Function<? super T,? extends U> valueMapper,
Supplier<M> mapFactory) |
<K,A,D,M extends java.util.Map<K,D>> |
IntList.toMap(IntFunction<? extends K> classifier,
Collector<java.lang.Integer,A,D> downstream,
Supplier<M> mapFactory) |
<K,U,M extends java.util.Map<K,U>> |
IntList.toMap(IntFunction<? extends K> keyExtractor,
IntFunction<? extends U> valueMapper,
BinaryOperator<U> mergeFunction,
Supplier<M> mapFactory) |
<K,U,M extends java.util.Map<K,U>> |
IntList.toMap(IntFunction<? extends K> keyExtractor,
IntFunction<? extends U> valueMapper,
Supplier<M> mapFactory) |
<K,A,D,M extends java.util.Map<K,D>> |
LongList.toMap(LongFunction<? extends K> classifier,
Collector<java.lang.Long,A,D> downstream,
Supplier<M> mapFactory) |
<K,U,M extends java.util.Map<K,U>> |
LongList.toMap(LongFunction<? extends K> keyExtractor,
LongFunction<? extends U> valueMapper,
BinaryOperator<U> mergeFunction,
Supplier<M> mapFactory) |
<K,U,M extends java.util.Map<K,U>> |
LongList.toMap(LongFunction<? extends K> keyExtractor,
LongFunction<? extends U> valueMapper,
Supplier<M> mapFactory) |
<K,A,D,M extends java.util.Map<K,D>> |
ShortList.toMap(ShortFunction<? extends K> classifier,
Collector<java.lang.Short,A,D> downstream,
Supplier<M> mapFactory) |
<K,U,M extends java.util.Map<K,U>> |
ShortList.toMap(ShortFunction<? extends K> keyExtractor,
ShortFunction<? extends U> valueMapper,
BinaryOperator<U> mergeFunction,
Supplier<M> mapFactory) |
<K,U,M extends java.util.Map<K,U>> |
ShortList.toMap(ShortFunction<? extends K> keyExtractor,
ShortFunction<? extends U> valueMapper,
Supplier<M> mapFactory) |
static <K,V,M extends java.util.Map<K,V>> |
Fn.toMap(Supplier<M> mapFactory) |
<K,U,V extends java.util.Collection<U>,M extends Multimap<K,U,V>> |
Seq.toMultimap(Function<? super T,? extends K> keyExtractor,
Function<? super T,? extends U> valueMapper,
Supplier<M> mapFactory) |
<K,V extends java.util.Collection<T>,M extends Multimap<K,T,V>> |
Seq.toMultimap(Function<? super T,? extends K> keyExtractor,
Supplier<M> mapFactory) |
static <T,L,R,LC extends java.util.Collection<L>,RC extends java.util.Collection<R>> |
Iterators.unzip(java.util.Iterator<? extends T> iter,
BiConsumer<? super T,Pair<L,R>> unzip,
Supplier<? extends java.util.Collection<?>> supplier) |
static <T,L,M,R,LC extends java.util.Collection<L>,MC extends java.util.Collection<M>,RC extends java.util.Collection<R>> |
Iterators.unzip3(java.util.Iterator<? extends T> iter,
BiConsumer<? super T,Triple<L,M,R>> unzip,
Supplier<? extends java.util.Collection<?>> supplier) |
Modifier and Type | Method and Description |
---|---|
static <T> Supplier<java.util.ArrayDeque<T>> |
Supplier.ofArrayDeque() |
static <K,V> Supplier<BiMap<K,V>> |
Supplier.ofBiMap() |
static Supplier<BooleanList> |
Supplier.ofBooleanList() |
static Supplier<ByteList> |
Supplier.ofByteList() |
static Supplier<CharList> |
Supplier.ofCharList() |
static <K,V> Supplier<java.util.concurrent.ConcurrentHashMap<K,V>> |
Supplier.ofConcurrentHashMap() |
static <T> Supplier<java.util.concurrent.ConcurrentLinkedQueue<T>> |
Supplier.ofConcurrentLinkedQueue() |
static <K,V> Supplier<java.util.concurrent.ConcurrentMap<K,V>> |
Supplier.ofConcurrentMap() |
static <T> Supplier<java.util.Deque<T>> |
Supplier.ofDeque() |
static Supplier<DoubleList> |
Supplier.ofDoubleList() |
static Supplier<FloatList> |
Supplier.ofFloatList() |
static Supplier<IntList> |
Supplier.ofIntList() |
static <T> Supplier<java.util.concurrent.LinkedBlockingQueue<T>> |
Supplier.ofLinkedBlockingQueue() |
static <K,V> Supplier<java.util.LinkedHashMap<K,V>> |
Supplier.ofLinkedHashMap() |
static <T> Supplier<java.util.LinkedHashSet<T>> |
Supplier.ofLinkedHashSet() |
static <T> Supplier<java.util.LinkedList<T>> |
Supplier.ofLinkedList() |
static <T> Supplier<java.util.List<T>> |
Supplier.ofList() |
static <K,v> Supplier<ListMultimap<K,v>> |
Supplier.ofListMultimap() |
static Supplier<LongList> |
Supplier.ofLongList() |
static <T> Supplier<LongMultiset<T>> |
Supplier.ofLongMultiset() |
static <K,V> Supplier<java.util.Map<K,V>> |
Supplier.ofMap() |
static <T> Supplier<Multiset<T>> |
Supplier.ofMultiset() |
static <K,V> Supplier<java.util.NavigableMap<K,V>> |
Supplier.ofNavigableMap() |
static <T> Supplier<java.util.NavigableSet<T>> |
Supplier.ofNavigableSet() |
static <T> Supplier<java.util.PriorityQueue<T>> |
Supplier.ofPriorityQueue() |
static <T> Supplier<java.util.Queue<T>> |
Supplier.ofQueue() |
static <T> Supplier<java.util.Set<T>> |
Supplier.ofSet() |
static <K,v> Supplier<SetMultimap<K,v>> |
Supplier.ofSetMultimap() |
static Supplier<ShortList> |
Supplier.ofShortList() |
static <K,V> Supplier<java.util.SortedMap<K,V>> |
Supplier.ofSortedMap() |
static <T> Supplier<java.util.SortedSet<T>> |
Supplier.ofSortedSet() |
static Supplier<java.lang.StringBuilder> |
Supplier.ofStringBuilder() |
static <K,V> Supplier<java.util.TreeMap<K,V>> |
Supplier.ofTreeMap() |
static <T> Supplier<java.util.TreeSet<T>> |
Supplier.ofTreeSet() |
Modifier and Type | Method and Description |
---|---|
Supplier<A> |
Collector.supplier()
A function that creates and returns a new mutable result container.
|
Modifier and Type | Method and Description |
---|---|
<R> R |
EntryStream.collect(Supplier<R> supplier,
BiConsumer<R,? super java.util.Map.Entry<K,V>> accumulator) |
<R> R |
EntryStream.collect(Supplier<R> supplier,
BiConsumer<R,? super java.util.Map.Entry<K,V>> accumulator,
BiConsumer<R,R> combiner) |
abstract <R> R |
Stream.collect(Supplier<R> supplier,
BiConsumer<R,? super T> accumulator)
The result will be merged by:
a.addAll(b) if result container is Collection/Multiset/LongMultiset/IntList/CharList/... ,
or a.putAll(b) if result container is Map/Multimap/Sheet ,
or a.append(b) if result container is StringBuilder when it's necessary in Parallel Stream. |
abstract <R> R |
Stream.collect(Supplier<R> supplier,
BiConsumer<R,? super T> accumulator,
BiConsumer<R,R> combiner)
Performs a mutable
reduction operation on the elements of this stream.
|
abstract <R> R |
ByteStream.collect(Supplier<R> supplier,
ObjByteConsumer<R> accumulator) |
abstract <R> R |
ByteStream.collect(Supplier<R> supplier,
ObjByteConsumer<R> accumulator,
BiConsumer<R,R> combiner)
Performs a mutable
reduction operation on the elements of this stream.
|
abstract <R> R |
CharStream.collect(Supplier<R> supplier,
ObjCharConsumer<R> accumulator) |
abstract <R> R |
CharStream.collect(Supplier<R> supplier,
ObjCharConsumer<R> accumulator,
BiConsumer<R,R> combiner)
Performs a mutable
reduction operation on the elements of this stream.
|
abstract <R> R |
DoubleStream.collect(Supplier<R> supplier,
ObjDoubleConsumer<R> accumulator) |
abstract <R> R |
DoubleStream.collect(Supplier<R> supplier,
ObjDoubleConsumer<R> accumulator,
BiConsumer<R,R> combiner)
Performs a mutable
reduction operation on the elements of this stream.
|
abstract <R> R |
FloatStream.collect(Supplier<R> supplier,
ObjFloatConsumer<R> accumulator) |
abstract <R> R |
FloatStream.collect(Supplier<R> supplier,
ObjFloatConsumer<R> accumulator,
BiConsumer<R,R> combiner)
Performs a mutable
reduction operation on the elements of this stream.
|
abstract <R> R |
IntStream.collect(Supplier<R> supplier,
ObjIntConsumer<R> accumulator) |
abstract <R> R |
IntStream.collect(Supplier<R> supplier,
ObjIntConsumer<R> accumulator,
BiConsumer<R,R> combiner)
Performs a mutable
reduction operation on the elements of this stream.
|
abstract <R> R |
LongStream.collect(Supplier<R> supplier,
ObjLongConsumer<R> accumulator) |
abstract <R> R |
LongStream.collect(Supplier<R> supplier,
ObjLongConsumer<R> accumulator,
BiConsumer<R,R> combiner)
Performs a mutable
reduction operation on the elements of this stream.
|
abstract <R> R |
ShortStream.collect(Supplier<R> supplier,
ObjShortConsumer<R> accumulator) |
abstract <R> R |
ShortStream.collect(Supplier<R> supplier,
ObjShortConsumer<R> accumulator,
BiConsumer<R,R> combiner)
Performs a mutable
reduction operation on the elements of this stream.
|
static <T> Stream<T> |
Stream.generate(Supplier<T> s) |
EntryStream<K,V> |
EntryStream.groupBy(BinaryOperator<V> mergeFunction,
Supplier<java.util.Map<K,V>> mapFactory) |
<A,D> EntryStream<K,D> |
EntryStream.groupBy(Collector<? super java.util.Map.Entry<K,V>,A,D> downstream,
Supplier<java.util.Map<K,D>> mapFactory) |
<KK,A,D> EntryStream<KK,D> |
EntryStream.groupBy(Function<? super java.util.Map.Entry<K,V>,? extends KK> classifier,
Collector<? super java.util.Map.Entry<K,V>,A,D> downstream,
Supplier<java.util.Map<KK,D>> mapFactory) |
<KK,VV> EntryStream<KK,VV> |
EntryStream.groupBy(Function<? super java.util.Map.Entry<K,V>,? extends KK> keyExtractor,
Function<? super java.util.Map.Entry<K,V>,? extends VV> valueMapper,
BinaryOperator<VV> mergeFunction,
Supplier<java.util.Map<KK,VV>> mapFactory) |
<KK,VV> EntryStream<KK,java.util.List<VV>> |
EntryStream.groupBy(Function<? super java.util.Map.Entry<K,V>,? extends KK> keyExtractor,
Function<? super java.util.Map.Entry<K,V>,? extends VV> valueMapper,
Supplier<java.util.Map<KK,java.util.List<VV>>> mapFactory) |
abstract <K,A,D> Stream<java.util.Map.Entry<K,D>> |
Stream.groupBy(Function<? super T,? extends K> classifier,
Collector<? super T,A,D> downstream,
Supplier<java.util.Map<K,D>> mapFactory) |
abstract <K,U> Stream<java.util.Map.Entry<K,U>> |
Stream.groupBy(Function<? super T,? extends K> classifier,
Function<? super T,? extends U> valueMapper,
BinaryOperator<U> mergeFunction,
Supplier<java.util.Map<K,U>> mapFactory) |
abstract <K,U> Stream<java.util.Map.Entry<K,java.util.List<U>>> |
Stream.groupBy(Function<? super T,? extends K> classifier,
Function<? super T,? extends U> valueMapper,
Supplier<java.util.Map<K,java.util.List<U>>> mapFactory) |
abstract <K> Stream<java.util.Map.Entry<K,java.util.List<T>>> |
Stream.groupBy(Function<? super T,? extends K> classifier,
Supplier<java.util.Map<K,java.util.List<T>>> mapFactory) |
EntryStream<K,java.util.List<V>> |
EntryStream.groupBy(Supplier<java.util.Map<K,java.util.List<V>>> mapFactory) |
abstract <K,A,D> EntryStream<K,D> |
Stream.groupByToEntry(Function<? super T,? extends K> classifier,
Collector<? super T,A,D> downstream,
Supplier<java.util.Map<K,D>> mapFactory) |
abstract <K,U> EntryStream<K,U> |
Stream.groupByToEntry(Function<? super T,? extends K> classifier,
Function<? super T,? extends U> valueMapper,
BinaryOperator<U> mergeFunction,
Supplier<java.util.Map<K,U>> mapFactory) |
abstract <K,U> EntryStream<K,java.util.List<U>> |
Stream.groupByToEntry(Function<? super T,? extends K> classifier,
Function<? super T,? extends U> valueMapper,
Supplier<java.util.Map<K,java.util.List<U>>> mapFactory) |
abstract <K> EntryStream<K,java.util.List<T>> |
Stream.groupByToEntry(Function<? super T,? extends K> classifier,
Supplier<java.util.Map<K,java.util.List<T>>> mapFactory) |
static <T,K,A,D,M extends java.util.Map<K,D>> |
Collectors.groupingBy(Function<? super T,? extends K> classifier,
Collector<? super T,A,D> downstream,
Supplier<M> mapFactory)
Returns a
Collector implementing a cascaded "group by" operation
on input elements of type T , grouping elements according to a
classification function, and then performing a reduction operation on
the values associated with a given key using the specified downstream
Collector . |
static <T,K,M extends java.util.Map<K,java.util.List<T>>> |
Collectors.groupingBy(Function<? super T,? extends K> classifier,
Supplier<M> mapFactory) |
static <T,K,A,D,M extends java.util.concurrent.ConcurrentMap<K,D>> |
Collectors.groupingByConcurrent(Function<? super T,? extends K> classifier,
Collector<? super T,A,D> downstream,
Supplier<M> mapFactory)
Returns a concurrent
Collector implementing a cascaded "group by"
operation on input elements of type T , grouping elements
according to a classification function, and then performing a reduction
operation on the values associated with a given key using the specified
downstream Collector . |
static <T,K,M extends java.util.concurrent.ConcurrentMap<K,java.util.List<T>>> |
Collectors.groupingByConcurrent(Function<? super T,? extends K> classifier,
Supplier<M> mapFactory) |
<KK,VV,M extends java.util.Map<KK,java.util.List<VV>>> |
EntryStream.groupTo(Function<? super java.util.Map.Entry<K,V>,? extends KK> keyExtractor,
Function<? super java.util.Map.Entry<K,V>,? extends VV> valueMapper,
Supplier<M> mapFactory) |
abstract <K,U,M extends java.util.Map<K,java.util.List<U>>> |
Stream.groupTo(Function<? super T,? extends K> keyExtractor,
Function<? super T,? extends U> valueMapper,
Supplier<M> mapFactory) |
abstract <K,M extends java.util.Map<K,java.util.List<T>>> |
Stream.groupTo(Function<? super T,? extends K> classifier,
Supplier<M> mapFactory) |
<M extends java.util.Map<K,java.util.List<V>>> |
EntryStream.groupTo(Supplier<M> mapFactory) |
static <T> Stream<T> |
Stream.interval(long delayInMillis,
long intervalInMillis,
Supplier<T> s) |
static <T> Stream<T> |
Stream.interval(long delay,
long interval,
java.util.concurrent.TimeUnit unit,
Supplier<T> s) |
static <T> Stream<T> |
Stream.interval(long intervalInMillis,
Supplier<T> s) |
static ByteStream |
ByteStream.iterate(byte seed,
Supplier<java.lang.Boolean> hasNext,
ByteUnaryOperator f) |
static CharStream |
CharStream.iterate(char seed,
Supplier<java.lang.Boolean> hasNext,
CharUnaryOperator f) |
static DoubleStream |
DoubleStream.iterate(double seed,
Supplier<java.lang.Boolean> hasNext,
DoubleUnaryOperator f) |
static FloatStream |
FloatStream.iterate(float seed,
Supplier<java.lang.Boolean> hasNext,
FloatUnaryOperator f) |
static IntStream |
IntStream.iterate(int seed,
Supplier<java.lang.Boolean> hasNext,
IntUnaryOperator f) |
static LongStream |
LongStream.iterate(long seed,
Supplier<java.lang.Boolean> hasNext,
LongUnaryOperator f) |
static ShortStream |
ShortStream.iterate(short seed,
Supplier<java.lang.Boolean> hasNext,
ShortUnaryOperator f) |
static ByteStream |
ByteStream.iterate(Supplier<java.lang.Boolean> hasNext,
ByteSupplier next) |
static CharStream |
CharStream.iterate(Supplier<java.lang.Boolean> hasNext,
CharSupplier next) |
static DoubleStream |
DoubleStream.iterate(Supplier<java.lang.Boolean> hasNext,
DoubleSupplier next) |
static FloatStream |
FloatStream.iterate(Supplier<java.lang.Boolean> hasNext,
FloatSupplier next) |
static IntStream |
IntStream.iterate(Supplier<java.lang.Boolean> hasNext,
IntSupplier next) |
static LongStream |
LongStream.iterate(Supplier<java.lang.Boolean> hasNext,
LongSupplier next) |
static ShortStream |
ShortStream.iterate(Supplier<java.lang.Boolean> hasNext,
ShortSupplier next) |
static <T> Stream<T> |
Stream.iterate(Supplier<java.lang.Boolean> hasNext,
Supplier<? extends T> next) |
static <T> Stream<T> |
Stream.iterate(Supplier<java.lang.Boolean> hasNext,
Supplier<? extends T> next) |
static <T> Stream<T> |
Stream.iterate(T seed,
Supplier<java.lang.Boolean> hasNext,
UnaryOperator<T> f)
Returns a 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. |
static <T> Collector<T,?,T> |
Collectors.maxByOrGet(java.util.Comparator<? super T> comparator,
Supplier<? extends T> other) |
static <T,X extends java.lang.RuntimeException> |
Collectors.maxByOrThrow(java.util.Comparator<? super T> comparator,
Supplier<? extends X> exceptionSupplier) |
static <T> Collector<T,?,T> |
Collectors.minByOrGet(java.util.Comparator<? super T> comparator,
Supplier<? extends T> other) |
static <T,X extends java.lang.RuntimeException> |
Collectors.minByOrThrow(java.util.Comparator<? super T> comparator,
Supplier<? extends X> exceptionSupplier) |
static <T,A,R> Collector<T,A,R> |
Collector.of(Supplier<A> supplier,
BiConsumer<A,T> accumulator,
BinaryOperator<A> combiner,
Function<A,R> finisher,
java.util.stream.Collector.Characteristics... characteristics) |
static ByteStream |
ByteStream.of(Supplier<ByteList> supplier)
Lazy evaluation.
|
static CharStream |
CharStream.of(Supplier<CharList> supplier)
Lazy evaluation.
|
static <T> Stream<T> |
Stream.of(Supplier<java.util.Collection<? extends T>> supplier)
Lazy evaluation.
|
static DoubleStream |
DoubleStream.of(Supplier<DoubleList> supplier)
Lazy evaluation.
|
static FloatStream |
FloatStream.of(Supplier<FloatList> supplier)
Lazy evaluation.
|
static IntStream |
IntStream.of(Supplier<IntList> supplier)
Lazy evaluation.
|
static LongStream |
LongStream.of(Supplier<LongList> supplier)
Lazy evaluation.
|
static <T,R> Collector<T,R,R> |
Collector.of(Supplier<R> supplier,
BiConsumer<R,T> accumulator,
BinaryOperator<R> combiner,
java.util.stream.Collector.Characteristics... characteristics) |
static ShortStream |
ShortStream.of(Supplier<ShortList> supplier)
Lazy evaluation.
|
static <T> Collector<T,?,T> |
Collectors.reducingOrGet(BinaryOperator<T> op,
Supplier<? extends T> other) |
static <T,U> Collector<T,?,U> |
Collectors.reducingOrGet(Function<? super T,? extends U> mapper,
BinaryOperator<U> op,
Supplier<? extends U> other) |
static <T,X extends java.lang.RuntimeException> |
Collectors.reducingOrThrow(BinaryOperator<T> op,
Supplier<? extends X> exceptionSupplier) |
static <T,U,X extends java.lang.RuntimeException> |
Collectors.reducingOrThrow(Function<? super T,? extends U> mapper,
BinaryOperator<U> op,
Supplier<? extends X> exceptionSupplier) |
static <T,A> Collector<T,?,A[]> |
Collectors.toArray(Supplier<A[]> arraySupplier) |
static <T,K,U> Collector<T,?,BiMap<K,U>> |
Collectors.toBiMap(Function<? super T,? extends K> keyExtractor,
Function<? super T,? extends U> valueMapper,
BinaryOperator<U> mergeFunction,
Supplier<BiMap<K,U>> mapFactory) |
static <T,K,U> Collector<T,?,BiMap<K,U>> |
Collectors.toBiMap(Function<? super T,? extends K> keyExtractor,
Function<? super T,? extends U> valueMapper,
Supplier<BiMap<K,U>> mapFactory) |
static <T,C extends java.util.Collection<T>> |
Collectors.toCollection(Supplier<C> collectionFactory)
Returns a
Collector that accumulates the input elements into a
new Collection , in encounter order. |
static <T,C extends java.util.Collection<T>> |
Collectors.toCollection(Supplier<C> collectionFactory,
int atMostSize) |
static <T,K,U,M extends java.util.concurrent.ConcurrentMap<K,U>> |
Collectors.toConcurrentMap(Function<? super T,? extends K> keyExtractor,
Function<? super T,? extends U> valueMapper,
BinaryOperator<U> mergeFunction,
Supplier<M> mapFactory)
Returns a concurrent
Collector that accumulates elements into a
ConcurrentMap whose keys and values are the result of applying
the provided mapping functions to the input elements. |
static <T,K,U,M extends java.util.concurrent.ConcurrentMap<K,U>> |
Collectors.toConcurrentMap(Function<? super T,? extends K> keyExtractor,
Function<? super T,? extends U> valueMapper,
Supplier<M> mapFactory) |
<R extends java.util.List<T>> |
BaseStream.toList(Supplier<R> supplier) |
LongMultiset<T> |
BaseStream.toLongMultiset(Supplier<? extends LongMultiset<T>> supplier) |
static <T> Collector<T,?,LongMultiset<T>> |
Collectors.toLongMultiset(Supplier<LongMultiset<T>> supplier) |
static <K,V,M extends java.util.Map<K,V>> |
Collectors.toMap(BinaryOperator<V> mergeFunction,
Supplier<M> mapFactory) |
<M extends java.util.Map<K,V>> |
EntryStream.toMap(BinaryOperator<V> mergeFunction,
Supplier<M> mapFactory) |
abstract <K,U,M extends java.util.Map<K,U>> |
ByteStream.toMap(ByteFunction<? extends K> keyExtractor,
ByteFunction<? extends U> valueMapper,
BinaryOperator<U> mergeFunction,
Supplier<M> mapFactory) |
abstract <K,U,M extends java.util.Map<K,U>> |
ByteStream.toMap(ByteFunction<? extends K> keyExtractor,
ByteFunction<? extends U> valueMapper,
Supplier<M> mapFactory) |
abstract <K,A,D,M extends java.util.Map<K,D>> |
ByteStream.toMap(ByteFunction<? extends K> classifier,
Collector<java.lang.Byte,A,D> downstream,
Supplier<M> mapFactory) |
abstract <K,U,M extends java.util.Map<K,U>> |
CharStream.toMap(CharFunction<? extends K> keyExtractor,
CharFunction<? extends U> valueMapper,
BinaryOperator<U> mergeFunction,
Supplier<M> mapFactory) |
abstract <K,U,M extends java.util.Map<K,U>> |
CharStream.toMap(CharFunction<? extends K> keyExtractor,
CharFunction<? extends U> valueMapper,
Supplier<M> mapFactory) |
abstract <K,A,D,M extends java.util.Map<K,D>> |
CharStream.toMap(CharFunction<? extends K> classifier,
Collector<java.lang.Character,A,D> downstream,
Supplier<M> mapFactory) |
<A,D,M extends java.util.Map<K,D>> |
EntryStream.toMap(Collector<? super java.util.Map.Entry<K,V>,A,D> downstream,
Supplier<M> mapFactory) |
abstract <K,A,D,M extends java.util.Map<K,D>> |
DoubleStream.toMap(DoubleFunction<? extends K> classifier,
Collector<java.lang.Double,A,D> downstream,
Supplier<M> mapFactory) |
abstract <K,U,M extends java.util.Map<K,U>> |
DoubleStream.toMap(DoubleFunction<? extends K> keyExtractor,
DoubleFunction<? extends U> valueMapper,
BinaryOperator<U> mergeFunction,
Supplier<M> mapFactory) |
abstract <K,U,M extends java.util.Map<K,U>> |
DoubleStream.toMap(DoubleFunction<? extends K> keyExtractor,
DoubleFunction<? extends U> valueMapper,
Supplier<M> mapFactory) |
abstract <K,A,D,M extends java.util.Map<K,D>> |
FloatStream.toMap(FloatFunction<? extends K> classifier,
Collector<java.lang.Float,A,D> downstream,
Supplier<M> mapFactory) |
abstract <K,U,M extends java.util.Map<K,U>> |
FloatStream.toMap(FloatFunction<? extends K> keyExtractor,
FloatFunction<? extends U> valueMapper,
BinaryOperator<U> mergeFunction,
Supplier<M> mapFactory) |
abstract <K,U,M extends java.util.Map<K,U>> |
FloatStream.toMap(FloatFunction<? extends K> keyExtractor,
FloatFunction<? extends U> valueMapper,
Supplier<M> mapFactory) |
<KK,A,D,M extends java.util.Map<KK,D>> |
EntryStream.toMap(Function<? super java.util.Map.Entry<K,V>,? extends KK> classifier,
Collector<? super java.util.Map.Entry<K,V>,A,D> downstream,
Supplier<M> mapFactory) |
<KK,VV,M extends java.util.Map<KK,VV>> |
EntryStream.toMap(Function<? super java.util.Map.Entry<K,V>,? extends KK> keyExtractor,
Function<? super java.util.Map.Entry<K,V>,? extends VV> valueMapper,
BinaryOperator<VV> mergeFunction,
Supplier<M> mapFactory) |
<KK,VV,M extends java.util.Map<KK,VV>> |
EntryStream.toMap(Function<? super java.util.Map.Entry<K,V>,? extends KK> keyExtractor,
Function<? super java.util.Map.Entry<K,V>,? extends VV> valueMapper,
Supplier<M> mapFactory) |
abstract <K,A,D,M extends java.util.Map<K,D>> |
Stream.toMap(Function<? super T,? extends K> classifier,
Collector<? super T,A,D> downstream,
Supplier<M> mapFactory) |
abstract <K,U,M extends java.util.Map<K,U>> |
Stream.toMap(Function<? super T,? extends K> keyExtractor,
Function<? super T,? extends U> valueMapper,
BinaryOperator<U> mergeFunction,
Supplier<M> mapFactory) |
static <T,K,U,M extends java.util.Map<K,U>> |
Collectors.toMap(Function<? super T,? extends K> keyExtractor,
Function<? super T,? extends U> valueMapper,
BinaryOperator<U> mergeFunction,
Supplier<M> mapFactory)
Returns a
Collector that accumulates elements into a
Map whose keys and values are the result of applying the provided
mapping functions to the input elements. |
abstract <K,U,M extends java.util.Map<K,U>> |
Stream.toMap(Function<? super T,? extends K> keyExtractor,
Function<? super T,? extends U> valueMapper,
Supplier<M> mapFactory) |
static <T,K,U,M extends java.util.Map<K,U>> |
Collectors.toMap(Function<? super T,? extends K> keyExtractor,
Function<? super T,? extends U> valueMapper,
Supplier<M> mapFactory) |
abstract <K,A,D,M extends java.util.Map<K,D>> |
IntStream.toMap(IntFunction<? extends K> classifier,
Collector<java.lang.Integer,A,D> downstream,
Supplier<M> mapFactory) |
abstract <K,U,M extends java.util.Map<K,U>> |
IntStream.toMap(IntFunction<? extends K> keyExtractor,
IntFunction<? extends U> valueMapper,
BinaryOperator<U> mergeFunction,
Supplier<M> mapFactory) |
abstract <K,U,M extends java.util.Map<K,U>> |
IntStream.toMap(IntFunction<? extends K> keyExtractor,
IntFunction<? extends U> valueMapper,
Supplier<M> mapFactory) |
abstract <K,A,D,M extends java.util.Map<K,D>> |
LongStream.toMap(LongFunction<? extends K> classifier,
Collector<java.lang.Long,A,D> downstream,
Supplier<M> mapFactory) |
abstract <K,U,M extends java.util.Map<K,U>> |
LongStream.toMap(LongFunction<? extends K> keyExtractor,
LongFunction<? extends U> valueMapper,
BinaryOperator<U> mergeFunction,
Supplier<M> mapFactory) |
abstract <K,U,M extends java.util.Map<K,U>> |
LongStream.toMap(LongFunction<? extends K> keyExtractor,
LongFunction<? extends U> valueMapper,
Supplier<M> mapFactory) |
abstract <K,A,D,M extends java.util.Map<K,D>> |
ShortStream.toMap(ShortFunction<? extends K> classifier,
Collector<java.lang.Short,A,D> downstream,
Supplier<M> mapFactory) |
abstract <K,U,M extends java.util.Map<K,U>> |
ShortStream.toMap(ShortFunction<? extends K> keyExtractor,
ShortFunction<? extends U> valueMapper,
BinaryOperator<U> mergeFunction,
Supplier<M> mapFactory) |
abstract <K,U,M extends java.util.Map<K,U>> |
ShortStream.toMap(ShortFunction<? extends K> keyExtractor,
ShortFunction<? extends U> valueMapper,
Supplier<M> mapFactory) |
static <K,V,M extends java.util.Map<K,V>> |
Collectors.toMap(Supplier<M> mapFactory) |
<M extends java.util.Map<K,V>> |
EntryStream.toMap(Supplier<M> mapFactory) |
<KK,VV,C extends java.util.Collection<VV>,M extends Multimap<KK,VV,C>> |
EntryStream.toMultimap(Function<? super java.util.Map.Entry<K,V>,? extends KK> keyExtractor,
Function<? super java.util.Map.Entry<K,V>,? extends VV> valueMapper,
Supplier<M> mapFactory) |
abstract <K,U,V extends java.util.Collection<U>,M extends Multimap<K,U,V>> |
Stream.toMultimap(Function<? super T,? extends K> keyExtractor,
Function<? super T,? extends U> valueMapper,
Supplier<M> mapFactory) |
static <T,K,U,V extends java.util.Collection<U>,M extends Multimap<K,U,V>> |
Collectors.toMultimap(Function<? super T,? extends K> keyExtractor,
Function<? super T,? extends U> valueMapper,
Supplier<M> mapFactory) |
abstract <K,V extends java.util.Collection<T>,M extends Multimap<K,T,V>> |
Stream.toMultimap(Function<? super T,? extends K> keyExtractor,
Supplier<M> mapFactory) |
static <T,K,V extends java.util.Collection<T>,M extends Multimap<K,T,V>> |
Collectors.toMultimap(Function<? super T,? extends K> keyExtractor,
Supplier<M> mapFactory) |
<C extends java.util.Collection<V>,M extends Multimap<K,V,C>> |
EntryStream.toMultimap(Supplier<M> mapFactory) |
static <K,E,V extends java.util.Collection<E>,M extends Multimap<K,E,V>> |
Collectors.toMultimap(Supplier<M> mapFactory) |
Multiset<T> |
BaseStream.toMultiset(Supplier<? extends Multiset<T>> supplier) |
static <T> Collector<T,?,Multiset<T>> |
Collectors.toMultiset(Supplier<Multiset<T>> supplier) |
<R extends java.util.Set<T>> |
BaseStream.toSet(Supplier<R> supplier) |