- java.lang.Object
-
- org.jooq.lambda.SeqImpl<T>
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<T>,java.util.stream.BaseStream<T,java.util.stream.Stream<T>>,java.util.stream.Stream<T>,Collectable<T>,Seq<T>
class SeqImpl<T> extends java.lang.Object implements Seq<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallMatch(java.util.function.Predicate<? super T> predicate)Whether all elements in the collectable match a given predicate.booleananyMatch(java.util.function.Predicate<? super T> predicate)Whether any element in the collectable matches a given predicate.java.util.Optional<T>avg()Get the average of the elements in this collectable.<U> java.util.Optional<U>avg(java.util.function.Function<? super T,? extends U> function)Get the average of the elements in this collectable.doubleavgDouble(java.util.function.ToDoubleFunction<? super T> function)Get the average of the elements in this collectable asdouble.doubleavgInt(java.util.function.ToIntFunction<? super T> function)Get the average of the elements in this collectable asint.doubleavgLong(java.util.function.ToLongFunction<? super T> function)Get the average of the elements in this collectable aslong.java.util.Optional<T>bitAnd()Collect all bits in this stream into a single value by applying bitwise and.<U> java.util.Optional<U>bitAnd(java.util.function.Function<? super T,? extends U> function)Collect all bits in this stream into a single value by applying bitwise and.intbitAndInt(java.util.function.ToIntFunction<? super T> function)Collect all bits in this stream into a single value by applying bitwise and.longbitAndLong(java.util.function.ToLongFunction<? super T> function)Collect all bits in this stream into a single value by applying bitwise and.java.util.Optional<T>bitOr()Collect all bits in this stream into a single value by applying bitwise or.<U> java.util.Optional<U>bitOr(java.util.function.Function<? super T,? extends U> function)Collect all bits in this stream into a single value by applying bitwise or.intbitOrInt(java.util.function.ToIntFunction<? super T> function)Collect all bits in this stream into a single value by applying bitwise or.longbitOrLong(java.util.function.ToLongFunction<? super T> function)Collect all bits in this stream into a single value by applying bitwise or.voidclose()<R> Rcollect(java.util.function.Supplier<R> supplier, java.util.function.BiConsumer<R,? super T> accumulator, java.util.function.BiConsumer<R,R> combiner)<R,A>
Rcollect(java.util.stream.Collector<? super T,A,R> collector)Collect this collectable.java.lang.StringcommonPrefix()Get the common prefix of all strings (or to-stringed values) in this stream.java.lang.StringcommonSuffix()Get the common prefix of all strings (or to-stringed values) in this stream.longcount()Count the values in this collectable.longcount(java.util.function.Predicate<? super T> predicate)Count the values in this collectable, for which a predicate evaluates to true.longcountDistinct()Count the distinct values in this collectable.longcountDistinct(java.util.function.Predicate<? super T> predicate)Count the distinct values in this collectable, for which a predicate evaluates to true.<U> longcountDistinctBy(java.util.function.Function<? super T,? extends U> function)Count the distinct values of a given expression in this collectable.<U> longcountDistinctBy(java.util.function.Function<? super T,? extends U> function, java.util.function.Predicate<? super U> predicate)Count the distinct values of a given expression in this collectable, for which a predicate evaluates to true.Seq<T>distinct()Seq<T>filter(java.util.function.Predicate<? super T> predicate)java.util.Optional<T>findAny()java.util.Optional<T>findFirst()<R> Seq<R>flatMap(java.util.function.Function<? super T,? extends java.util.stream.Stream<? extends R>> mapper)java.util.stream.DoubleStreamflatMapToDouble(java.util.function.Function<? super T,? extends java.util.stream.DoubleStream> mapper)java.util.stream.IntStreamflatMapToInt(java.util.function.Function<? super T,? extends java.util.stream.IntStream> mapper)java.util.stream.LongStreamflatMapToLong(java.util.function.Function<? super T,? extends java.util.stream.LongStream> mapper)voidforEach(java.util.function.Consumer<? super T> action)voidforEachOrdered(java.util.function.Consumer<? super T> action)java.lang.Stringformat()Generate a nicely formatted representation of this stream.booleanisParallel()Always returns false.java.util.Iterator<T>iterator()Seq<T>limit(long maxSize)<R> Seq<R>map(java.util.function.Function<? super T,? extends R> mapper)java.util.stream.DoubleStreammapToDouble(java.util.function.ToDoubleFunction<? super T> mapper)java.util.stream.IntStreammapToInt(java.util.function.ToIntFunction<? super T> mapper)java.util.stream.LongStreammapToLong(java.util.function.ToLongFunction<? super T> mapper)java.util.Optional<T>max()Get the maximum value.java.util.Optional<T>max(java.util.Comparator<? super T> comparator)Get the maximum value by a function.<U extends java.lang.Comparable<? super U>>
java.util.Optional<U>max(java.util.function.Function<? super T,? extends U> function)Get the maximum value by a function.<U> java.util.Optional<U>max(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)Get the maximum value by a function.Seq<T>maxAll()Get the maximum values.Seq<T>maxAll(java.util.Comparator<? super T> comparator)Get the maximum values by a function.<U extends java.lang.Comparable<? super U>>
Seq<U>maxAll(java.util.function.Function<? super T,? extends U> function)Get the maximum values by a function.<U> Seq<U>maxAll(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)Get the maximum values by a function.<U extends java.lang.Comparable<? super U>>
Seq<T>maxAllBy(java.util.function.Function<? super T,? extends U> function)Get the maximum values by a function.<U> Seq<T>maxAllBy(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)Get the maximum values by a function.<U extends java.lang.Comparable<? super U>>
java.util.Optional<T>maxBy(java.util.function.Function<? super T,? extends U> function)Get the maximum value by a function.<U> java.util.Optional<T>maxBy(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)Get the maximum value by a function.java.util.Optional<T>median()Get the median value.java.util.Optional<T>median(java.util.Comparator<? super T> comparator)Get the median value.<U extends java.lang.Comparable<? super U>>
java.util.Optional<T>medianBy(java.util.function.Function<? super T,? extends U> function)Get the median value by a function.<U> java.util.Optional<T>medianBy(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)Get the median value by a function.java.util.Optional<T>min()Get the minimum value.java.util.Optional<T>min(java.util.Comparator<? super T> comparator)Get the minimum value by a function.<U extends java.lang.Comparable<? super U>>
java.util.Optional<U>min(java.util.function.Function<? super T,? extends U> function)Get the minimum value by a function.<U> java.util.Optional<U>min(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)Get the minimum value by a function.Seq<T>minAll()Get the minimum values.Seq<T>minAll(java.util.Comparator<? super T> comparator)Get the minimum values by a function.<U extends java.lang.Comparable<? super U>>
Seq<U>minAll(java.util.function.Function<? super T,? extends U> function)Get the minimum values by a function.<U> Seq<U>minAll(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)Get the minimum values by a function.<U extends java.lang.Comparable<? super U>>
Seq<T>minAllBy(java.util.function.Function<? super T,? extends U> function)Get the minimum values by a function.<U> Seq<T>minAllBy(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)Get the minimum values by a function.<U extends java.lang.Comparable<? super U>>
java.util.Optional<T>minBy(java.util.function.Function<? super T,? extends U> function)Get the minimum value by a function.<U> java.util.Optional<T>minBy(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)Get the minimum value by a function.java.util.Optional<T>mode()Get the mode, i.e.Seq<T>modeAll()Get the mode, i.e.<U> Seq<T>modeAllBy(java.util.function.Function<? super T,? extends U> function)Get the mode, i.e.<U> java.util.Optional<T>modeBy(java.util.function.Function<? super T,? extends U> function)Get the mode, i.e.booleannoneMatch(java.util.function.Predicate<? super T> predicate)Whether no element in the collectable matches a given predicate.Seq<T>onClose(java.lang.Runnable closeHandler)Seq<T>peek(java.util.function.Consumer<? super T> action)java.util.Optional<T>percentile(double percentile)Get the discrete percentile value.java.util.Optional<T>percentile(double percentile, java.util.Comparator<? super T> comparator)Get the discrete percentile value.<U extends java.lang.Comparable<? super U>>
java.util.Optional<T>percentileBy(double percentile, java.util.function.Function<? super T,? extends U> function)Get the discrete percentile value by a function.<U> java.util.Optional<T>percentileBy(double percentile, java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)Get the discrete percentile value by a function.java.util.Optional<T>reduce(java.util.function.BinaryOperator<T> accumulator)Treduce(T identity, java.util.function.BinaryOperator<T> accumulator)<U> Ureduce(U identity, java.util.function.BiFunction<U,? super T,U> accumulator, java.util.function.BinaryOperator<U> combiner)Seq<T>skip(long n)Seq<T>sorted()Seq<T>sorted(java.util.Comparator<? super T> comparator)java.util.Spliterator<T>spliterator()java.util.stream.Stream<T>stream()The underlyingStreamimplementation.java.util.Optional<T>sum()Get the sum of the elements in this collectable.<U> java.util.Optional<U>sum(java.util.function.Function<? super T,? extends U> function)Get the sum of the elements in this collectable.doublesumDouble(java.util.function.ToDoubleFunction<? super T> function)Get the sum of the elements in this collectable asdouble.intsumInt(java.util.function.ToIntFunction<? super T> function)Get the sum of the elements in this collectable asint.longsumLong(java.util.function.ToLongFunction<? super T> function)Get the sum of the elements in this collectable aslong.java.lang.Object[]toArray()<A> A[]toArray(java.util.function.IntFunction<A[]> generator)<C extends java.util.Collection<T>>
CtoCollection(java.util.function.Supplier<C> factory)Collect the collectable into aCollection.java.util.List<T>toList()Collect the collectable into anArrayList.<L extends java.util.List<T>>
LtoList(java.util.function.Supplier<L> factory)Collect the collectable into aList.<K> java.util.Map<K,T>toMap(java.util.function.Function<? super T,? extends K> keyMapper)Collect the collectable into aMapwith the given keys and the self element as value.<K,V>
java.util.Map<K,V>toMap(java.util.function.Function<? super T,? extends K> keyMapper, java.util.function.Function<? super T,? extends V> valueMapper)Collect the collectable into aMap.java.util.Set<T>toSet()Collect the collectable into aLinkedHashSet.<S extends java.util.Set<T>>
StoSet(java.util.function.Supplier<S> factory)Collect the collectable into aSet.java.lang.StringtoString()java.lang.StringtoString(java.lang.CharSequence delimiter)Consume a stream and concatenate all elements using a separator.java.lang.StringtoString(java.lang.CharSequence delimiter, java.lang.CharSequence prefix, java.lang.CharSequence suffix)Shortcut for callingStream.collect(Collector)with aCollectors.joining(CharSequence, CharSequence, CharSequence)collector.java.util.List<T>toUnmodifiableList()Collect the collectable into an unmodifiableList.java.util.Set<T>toUnmodifiableSet()Collect the collectable into an unmodifiableSet.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jooq.lambda.Collectable
collect, collect, collect, collect, collect, collect, collect, collect, collect, collect, collect, collect, collect, collect, collect
-
Methods inherited from interface org.jooq.lambda.Seq
append, append, append, append, append, append, cast, concat, concat, concat, concat, concat, concat, contains, containsAll, containsAll, containsAll, containsAll, containsAny, containsAny, containsAny, containsAny, crossApply, crossJoin, crossJoin, crossJoin, crossSelfJoin, cycle, cycle, distinct, drop, duplicate, findFirst, findLast, findLast, findSingle, foldLeft, foldRight, get, groupBy, groupBy, groupBy, grouped, grouped, indexOf, indexOf, innerJoin, innerJoin, innerJoin, innerSelfJoin, intersperse, isEmpty, isNotEmpty, join, join, join, leftOuterJoin, leftOuterJoin, leftOuterJoin, leftOuterSelfJoin, limitUntil, limitUntilClosed, limitWhile, limitWhileClosed, ofType, onEmpty, onEmptyGet, onEmptyThrow, outerApply, parallel, partition, prepend, prepend, prepend, prepend, prepend, prepend, print, print, printErr, printOut, remove, removeAll, removeAll, removeAll, removeAll, retainAll, retainAll, retainAll, retainAll, reverse, rightOuterJoin, rightOuterJoin, rightOuterJoin, rightOuterSelfJoin, scanLeft, scanRight, sequential, shuffle, shuffle, skipUntil, skipUntilClosed, skipWhile, skipWhileClosed, slice, sliding, sorted, sorted, splitAt, splitAtHead, take, transform, unordered, window, window, window, window, window, window, window, window, window, window, window, window, window, window, window, window, window, window, window, window, window, window, window, window, zip, zip, zip, zip, zip, zip, zipWithIndex, zipWithIndex
-
-
-
-
Field Detail
-
NULL
static final java.lang.Object NULL
-
stream
private final java.util.stream.Stream<? extends T> stream
-
buffered
private java.lang.Object[] buffered
-
-
Constructor Detail
-
SeqImpl
SeqImpl(java.util.stream.Stream<? extends T> stream)
-
-
Method Detail
-
stream
public java.util.stream.Stream<T> stream()
Description copied from interface:SeqThe underlyingStreamimplementation.
-
mapToInt
public java.util.stream.IntStream mapToInt(java.util.function.ToIntFunction<? super T> mapper)
-
mapToLong
public java.util.stream.LongStream mapToLong(java.util.function.ToLongFunction<? super T> mapper)
-
mapToDouble
public java.util.stream.DoubleStream mapToDouble(java.util.function.ToDoubleFunction<? super T> mapper)
- Specified by:
mapToDoublein interfaceSeq<T>- Specified by:
mapToDoublein interfacejava.util.stream.Stream<T>
-
flatMap
public <R> Seq<R> flatMap(java.util.function.Function<? super T,? extends java.util.stream.Stream<? extends R>> mapper)
-
flatMapToInt
public java.util.stream.IntStream flatMapToInt(java.util.function.Function<? super T,? extends java.util.stream.IntStream> mapper)
- Specified by:
flatMapToIntin interfaceSeq<T>- Specified by:
flatMapToIntin interfacejava.util.stream.Stream<T>
-
flatMapToLong
public java.util.stream.LongStream flatMapToLong(java.util.function.Function<? super T,? extends java.util.stream.LongStream> mapper)
- Specified by:
flatMapToLongin interfaceSeq<T>- Specified by:
flatMapToLongin interfacejava.util.stream.Stream<T>
-
flatMapToDouble
public java.util.stream.DoubleStream flatMapToDouble(java.util.function.Function<? super T,? extends java.util.stream.DoubleStream> mapper)
- Specified by:
flatMapToDoublein interfaceSeq<T>- Specified by:
flatMapToDoublein interfacejava.util.stream.Stream<T>
-
forEach
public void forEach(java.util.function.Consumer<? super T> action)
-
forEachOrdered
public void forEachOrdered(java.util.function.Consumer<? super T> action)
- Specified by:
forEachOrderedin interfacejava.util.stream.Stream<T>
-
toArray
public java.lang.Object[] toArray()
- Specified by:
toArrayin interfacejava.util.stream.Stream<T>
-
toArray
public <A> A[] toArray(java.util.function.IntFunction<A[]> generator)
- Specified by:
toArrayin interfacejava.util.stream.Stream<T>
-
reduce
public T reduce(T identity, java.util.function.BinaryOperator<T> accumulator)
- Specified by:
reducein interfacejava.util.stream.Stream<T>
-
reduce
public java.util.Optional<T> reduce(java.util.function.BinaryOperator<T> accumulator)
- Specified by:
reducein interfacejava.util.stream.Stream<T>
-
reduce
public <U> U reduce(U identity, java.util.function.BiFunction<U,? super T,U> accumulator, java.util.function.BinaryOperator<U> combiner)- Specified by:
reducein interfacejava.util.stream.Stream<T>
-
collect
public <R> R collect(java.util.function.Supplier<R> supplier, java.util.function.BiConsumer<R,? super T> accumulator, java.util.function.BiConsumer<R,R> combiner)- Specified by:
collectin interfacejava.util.stream.Stream<T>
-
collect
public <R,A> R collect(java.util.stream.Collector<? super T,A,R> collector)
Description copied from interface:CollectableCollect this collectable.- Specified by:
collectin interfaceCollectable<T>- Specified by:
collectin interfacejava.util.stream.Stream<T>
-
count
public long count()
Description copied from interface:CollectableCount the values in this collectable.
-
count
public long count(java.util.function.Predicate<? super T> predicate)
Description copied from interface:CollectableCount the values in this collectable, for which a predicate evaluates to true.- Specified by:
countin interfaceCollectable<T>
-
countDistinct
public long countDistinct()
Description copied from interface:CollectableCount the distinct values in this collectable.- Specified by:
countDistinctin interfaceCollectable<T>
-
countDistinct
public long countDistinct(java.util.function.Predicate<? super T> predicate)
Description copied from interface:CollectableCount the distinct values in this collectable, for which a predicate evaluates to true.- Specified by:
countDistinctin interfaceCollectable<T>
-
countDistinctBy
public <U> long countDistinctBy(java.util.function.Function<? super T,? extends U> function)
Description copied from interface:CollectableCount the distinct values of a given expression in this collectable.- Specified by:
countDistinctByin interfaceCollectable<T>
-
countDistinctBy
public <U> long countDistinctBy(java.util.function.Function<? super T,? extends U> function, java.util.function.Predicate<? super U> predicate)
Description copied from interface:CollectableCount the distinct values of a given expression in this collectable, for which a predicate evaluates to true.- Specified by:
countDistinctByin interfaceCollectable<T>
-
sum
public java.util.Optional<T> sum()
Description copied from interface:CollectableGet the sum of the elements in this collectable.- Specified by:
sumin interfaceCollectable<T>
-
sum
public <U> java.util.Optional<U> sum(java.util.function.Function<? super T,? extends U> function)
Description copied from interface:CollectableGet the sum of the elements in this collectable.- Specified by:
sumin interfaceCollectable<T>
-
sumInt
public int sumInt(java.util.function.ToIntFunction<? super T> function)
Description copied from interface:CollectableGet the sum of the elements in this collectable asint.- Specified by:
sumIntin interfaceCollectable<T>
-
sumLong
public long sumLong(java.util.function.ToLongFunction<? super T> function)
Description copied from interface:CollectableGet the sum of the elements in this collectable aslong.- Specified by:
sumLongin interfaceCollectable<T>
-
sumDouble
public double sumDouble(java.util.function.ToDoubleFunction<? super T> function)
Description copied from interface:CollectableGet the sum of the elements in this collectable asdouble.- Specified by:
sumDoublein interfaceCollectable<T>
-
avg
public java.util.Optional<T> avg()
Description copied from interface:CollectableGet the average of the elements in this collectable.- Specified by:
avgin interfaceCollectable<T>
-
avg
public <U> java.util.Optional<U> avg(java.util.function.Function<? super T,? extends U> function)
Description copied from interface:CollectableGet the average of the elements in this collectable.- Specified by:
avgin interfaceCollectable<T>
-
avgInt
public double avgInt(java.util.function.ToIntFunction<? super T> function)
Description copied from interface:CollectableGet the average of the elements in this collectable asint.- Specified by:
avgIntin interfaceCollectable<T>
-
avgLong
public double avgLong(java.util.function.ToLongFunction<? super T> function)
Description copied from interface:CollectableGet the average of the elements in this collectable aslong.- Specified by:
avgLongin interfaceCollectable<T>
-
avgDouble
public double avgDouble(java.util.function.ToDoubleFunction<? super T> function)
Description copied from interface:CollectableGet the average of the elements in this collectable asdouble.- Specified by:
avgDoublein interfaceCollectable<T>
-
min
public java.util.Optional<T> min()
Description copied from interface:CollectableGet the minimum value.This makes the unsafe assumption that
<T extends Comparable<? super T>>- Specified by:
minin interfaceCollectable<T>
-
min
public java.util.Optional<T> min(java.util.Comparator<? super T> comparator)
Description copied from interface:CollectableGet the minimum value by a function.- Specified by:
minin interfaceCollectable<T>- Specified by:
minin interfacejava.util.stream.Stream<T>
-
min
public <U extends java.lang.Comparable<? super U>> java.util.Optional<U> min(java.util.function.Function<? super T,? extends U> function)
Description copied from interface:CollectableGet the minimum value by a function.- Specified by:
minin interfaceCollectable<T>
-
min
public <U> java.util.Optional<U> min(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Description copied from interface:CollectableGet the minimum value by a function.- Specified by:
minin interfaceCollectable<T>
-
minBy
public <U extends java.lang.Comparable<? super U>> java.util.Optional<T> minBy(java.util.function.Function<? super T,? extends U> function)
Description copied from interface:CollectableGet the minimum value by a function.- Specified by:
minByin interfaceCollectable<T>
-
minBy
public <U> java.util.Optional<T> minBy(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Description copied from interface:CollectableGet the minimum value by a function.- Specified by:
minByin interfaceCollectable<T>
-
minAll
public Seq<T> minAll()
Description copied from interface:CollectableGet the minimum values.This makes the unsafe assumption that
<T extends Comparable<? super T>>- Specified by:
minAllin interfaceCollectable<T>
-
minAll
public Seq<T> minAll(java.util.Comparator<? super T> comparator)
Description copied from interface:CollectableGet the minimum values by a function.- Specified by:
minAllin interfaceCollectable<T>
-
minAll
public <U extends java.lang.Comparable<? super U>> Seq<U> minAll(java.util.function.Function<? super T,? extends U> function)
Description copied from interface:CollectableGet the minimum values by a function.- Specified by:
minAllin interfaceCollectable<T>
-
minAll
public <U> Seq<U> minAll(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Description copied from interface:CollectableGet the minimum values by a function.- Specified by:
minAllin interfaceCollectable<T>
-
minAllBy
public <U extends java.lang.Comparable<? super U>> Seq<T> minAllBy(java.util.function.Function<? super T,? extends U> function)
Description copied from interface:CollectableGet the minimum values by a function.- Specified by:
minAllByin interfaceCollectable<T>
-
minAllBy
public <U> Seq<T> minAllBy(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Description copied from interface:CollectableGet the minimum values by a function.- Specified by:
minAllByin interfaceCollectable<T>
-
max
public java.util.Optional<T> max()
Description copied from interface:CollectableGet the maximum value.This makes the unsafe assumption that
<T extends Comparable<? super T>>- Specified by:
maxin interfaceCollectable<T>
-
max
public java.util.Optional<T> max(java.util.Comparator<? super T> comparator)
Description copied from interface:CollectableGet the maximum value by a function.- Specified by:
maxin interfaceCollectable<T>- Specified by:
maxin interfacejava.util.stream.Stream<T>
-
max
public <U extends java.lang.Comparable<? super U>> java.util.Optional<U> max(java.util.function.Function<? super T,? extends U> function)
Description copied from interface:CollectableGet the maximum value by a function.- Specified by:
maxin interfaceCollectable<T>
-
max
public <U> java.util.Optional<U> max(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Description copied from interface:CollectableGet the maximum value by a function.- Specified by:
maxin interfaceCollectable<T>
-
maxBy
public <U extends java.lang.Comparable<? super U>> java.util.Optional<T> maxBy(java.util.function.Function<? super T,? extends U> function)
Description copied from interface:CollectableGet the maximum value by a function.- Specified by:
maxByin interfaceCollectable<T>
-
maxBy
public <U> java.util.Optional<T> maxBy(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Description copied from interface:CollectableGet the maximum value by a function.- Specified by:
maxByin interfaceCollectable<T>
-
maxAll
public Seq<T> maxAll()
Description copied from interface:CollectableGet the maximum values.This makes the unsafe assumption that
<T extends Comparable<? super T>>- Specified by:
maxAllin interfaceCollectable<T>
-
maxAll
public Seq<T> maxAll(java.util.Comparator<? super T> comparator)
Description copied from interface:CollectableGet the maximum values by a function.- Specified by:
maxAllin interfaceCollectable<T>
-
maxAll
public <U extends java.lang.Comparable<? super U>> Seq<U> maxAll(java.util.function.Function<? super T,? extends U> function)
Description copied from interface:CollectableGet the maximum values by a function.- Specified by:
maxAllin interfaceCollectable<T>
-
maxAll
public <U> Seq<U> maxAll(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Description copied from interface:CollectableGet the maximum values by a function.- Specified by:
maxAllin interfaceCollectable<T>
-
maxAllBy
public <U extends java.lang.Comparable<? super U>> Seq<T> maxAllBy(java.util.function.Function<? super T,? extends U> function)
Description copied from interface:CollectableGet the maximum values by a function.- Specified by:
maxAllByin interfaceCollectable<T>
-
maxAllBy
public <U> Seq<T> maxAllBy(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Description copied from interface:CollectableGet the maximum values by a function.- Specified by:
maxAllByin interfaceCollectable<T>
-
median
public java.util.Optional<T> median()
Description copied from interface:CollectableGet the median value.This makes the unsafe assumption that
<T extends Comparable<? super T>>- Specified by:
medianin interfaceCollectable<T>
-
median
public java.util.Optional<T> median(java.util.Comparator<? super T> comparator)
Description copied from interface:CollectableGet the median value.- Specified by:
medianin interfaceCollectable<T>
-
medianBy
public <U extends java.lang.Comparable<? super U>> java.util.Optional<T> medianBy(java.util.function.Function<? super T,? extends U> function)
Description copied from interface:CollectableGet the median value by a function.- Specified by:
medianByin interfaceCollectable<T>
-
medianBy
public <U> java.util.Optional<T> medianBy(java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Description copied from interface:CollectableGet the median value by a function.- Specified by:
medianByin interfaceCollectable<T>
-
percentile
public java.util.Optional<T> percentile(double percentile)
Description copied from interface:CollectableGet the discrete percentile value.This makes the unsafe assumption that
<T extends Comparable<? super T>>- Specified by:
percentilein interfaceCollectable<T>
-
percentile
public java.util.Optional<T> percentile(double percentile, java.util.Comparator<? super T> comparator)
Description copied from interface:CollectableGet the discrete percentile value.- Specified by:
percentilein interfaceCollectable<T>
-
percentileBy
public <U extends java.lang.Comparable<? super U>> java.util.Optional<T> percentileBy(double percentile, java.util.function.Function<? super T,? extends U> function)
Description copied from interface:CollectableGet the discrete percentile value by a function.- Specified by:
percentileByin interfaceCollectable<T>
-
percentileBy
public <U> java.util.Optional<T> percentileBy(double percentile, java.util.function.Function<? super T,? extends U> function, java.util.Comparator<? super U> comparator)
Description copied from interface:CollectableGet the discrete percentile value by a function.- Specified by:
percentileByin interfaceCollectable<T>
-
mode
public java.util.Optional<T> mode()
Description copied from interface:CollectableGet the mode, i.e. the value that appears most often in the collectable.- Specified by:
modein interfaceCollectable<T>
-
modeBy
public <U> java.util.Optional<T> modeBy(java.util.function.Function<? super T,? extends U> function)
Description copied from interface:CollectableGet the mode, i.e. the value that appears most often in the collectable.- Specified by:
modeByin interfaceCollectable<T>
-
modeAll
public Seq<T> modeAll()
Description copied from interface:CollectableGet the mode, i.e. the values that appear most often in the collectable.- Specified by:
modeAllin interfaceCollectable<T>
-
modeAllBy
public <U> Seq<T> modeAllBy(java.util.function.Function<? super T,? extends U> function)
Description copied from interface:CollectableGet the mode, i.e. the values that appear most often in the collectable.- Specified by:
modeAllByin interfaceCollectable<T>
-
anyMatch
public boolean anyMatch(java.util.function.Predicate<? super T> predicate)
Description copied from interface:CollectableWhether any element in the collectable matches a given predicate.- Specified by:
anyMatchin interfaceCollectable<T>- Specified by:
anyMatchin interfacejava.util.stream.Stream<T>
-
allMatch
public boolean allMatch(java.util.function.Predicate<? super T> predicate)
Description copied from interface:CollectableWhether all elements in the collectable match a given predicate.- Specified by:
allMatchin interfaceCollectable<T>- Specified by:
allMatchin interfacejava.util.stream.Stream<T>
-
noneMatch
public boolean noneMatch(java.util.function.Predicate<? super T> predicate)
Description copied from interface:CollectableWhether no element in the collectable matches a given predicate.- Specified by:
noneMatchin interfaceCollectable<T>- Specified by:
noneMatchin interfacejava.util.stream.Stream<T>
-
bitAnd
public java.util.Optional<T> bitAnd()
Description copied from interface:CollectableCollect all bits in this stream into a single value by applying bitwise and.- Specified by:
bitAndin interfaceCollectable<T>
-
bitAnd
public <U> java.util.Optional<U> bitAnd(java.util.function.Function<? super T,? extends U> function)
Description copied from interface:CollectableCollect all bits in this stream into a single value by applying bitwise and.- Specified by:
bitAndin interfaceCollectable<T>
-
bitAndInt
public int bitAndInt(java.util.function.ToIntFunction<? super T> function)
Description copied from interface:CollectableCollect all bits in this stream into a single value by applying bitwise and.- Specified by:
bitAndIntin interfaceCollectable<T>
-
bitAndLong
public long bitAndLong(java.util.function.ToLongFunction<? super T> function)
Description copied from interface:CollectableCollect all bits in this stream into a single value by applying bitwise and.- Specified by:
bitAndLongin interfaceCollectable<T>
-
bitOr
public java.util.Optional<T> bitOr()
Description copied from interface:CollectableCollect all bits in this stream into a single value by applying bitwise or.- Specified by:
bitOrin interfaceCollectable<T>
-
bitOr
public <U> java.util.Optional<U> bitOr(java.util.function.Function<? super T,? extends U> function)
Description copied from interface:CollectableCollect all bits in this stream into a single value by applying bitwise or.- Specified by:
bitOrin interfaceCollectable<T>
-
bitOrInt
public int bitOrInt(java.util.function.ToIntFunction<? super T> function)
Description copied from interface:CollectableCollect all bits in this stream into a single value by applying bitwise or.- Specified by:
bitOrIntin interfaceCollectable<T>
-
bitOrLong
public long bitOrLong(java.util.function.ToLongFunction<? super T> function)
Description copied from interface:CollectableCollect all bits in this stream into a single value by applying bitwise or.- Specified by:
bitOrLongin interfaceCollectable<T>
-
findFirst
public java.util.Optional<T> findFirst()
- Specified by:
findFirstin interfacejava.util.stream.Stream<T>
-
findAny
public java.util.Optional<T> findAny()
- Specified by:
findAnyin interfacejava.util.stream.Stream<T>
-
iterator
public java.util.Iterator<T> iterator()
-
spliterator
public java.util.Spliterator<T> spliterator()
-
isParallel
public boolean isParallel()
Always returns false. Seq streams are always sequential and, as such, doesn't support parallelization.- Specified by:
isParallelin interfacejava.util.stream.BaseStream<T,java.util.stream.Stream<T>>- Returns:
- false
- See Also:
- jOOL Issue #130
-
close
public void close()
-
toList
public java.util.List<T> toList()
Description copied from interface:CollectableCollect the collectable into anArrayList.- Specified by:
toListin interfaceCollectable<T>
-
toList
public <L extends java.util.List<T>> L toList(java.util.function.Supplier<L> factory)
Description copied from interface:CollectableCollect the collectable into aList.- Specified by:
toListin interfaceCollectable<T>
-
toUnmodifiableList
public java.util.List<T> toUnmodifiableList()
Description copied from interface:CollectableCollect the collectable into an unmodifiableList.- Specified by:
toUnmodifiableListin interfaceCollectable<T>
-
toSet
public java.util.Set<T> toSet()
Description copied from interface:CollectableCollect the collectable into aLinkedHashSet.- Specified by:
toSetin interfaceCollectable<T>
-
toSet
public <S extends java.util.Set<T>> S toSet(java.util.function.Supplier<S> factory)
Description copied from interface:CollectableCollect the collectable into aSet.- Specified by:
toSetin interfaceCollectable<T>
-
toUnmodifiableSet
public java.util.Set<T> toUnmodifiableSet()
Description copied from interface:CollectableCollect the collectable into an unmodifiableSet.- Specified by:
toUnmodifiableSetin interfaceCollectable<T>
-
toCollection
public <C extends java.util.Collection<T>> C toCollection(java.util.function.Supplier<C> factory)
Description copied from interface:CollectableCollect the collectable into aCollection.- Specified by:
toCollectionin interfaceCollectable<T>
-
toMap
public <K,V> java.util.Map<K,V> toMap(java.util.function.Function<? super T,? extends K> keyMapper, java.util.function.Function<? super T,? extends V> valueMapper)
Description copied from interface:CollectableCollect the collectable into aMap.- Specified by:
toMapin interfaceCollectable<T>
-
toMap
public <K> java.util.Map<K,T> toMap(java.util.function.Function<? super T,? extends K> keyMapper)
Description copied from interface:CollectableCollect the collectable into aMapwith the given keys and the self element as value.- Specified by:
toMapin interfaceCollectable<T>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toString
public java.lang.String toString(java.lang.CharSequence delimiter)
Description copied from interface:CollectableConsume a stream and concatenate all elements using a separator.- Specified by:
toStringin interfaceCollectable<T>
-
toString
public java.lang.String toString(java.lang.CharSequence delimiter, java.lang.CharSequence prefix, java.lang.CharSequence suffix)Description copied from interface:CollectableShortcut for callingStream.collect(Collector)with aCollectors.joining(CharSequence, CharSequence, CharSequence)collector.- Specified by:
toStringin interfaceCollectable<T>
-
commonPrefix
public java.lang.String commonPrefix()
Description copied from interface:CollectableGet the common prefix of all strings (or to-stringed values) in this stream.- Specified by:
commonPrefixin interfaceCollectable<T>
-
commonSuffix
public java.lang.String commonSuffix()
Description copied from interface:CollectableGet the common prefix of all strings (or to-stringed values) in this stream.- Specified by:
commonSuffixin interfaceCollectable<T>
-
-