Uses of Annotation Interface
com.landawn.abacus.annotation.Beta
Package
Description
-
Uses of Beta in com.landawn.abacus.annotation
-
Uses of Beta in com.landawn.abacus.http
Modifier and TypeFieldDescriptionstatic final String
HttpHeaders.Names.FOLLOW_ONLY_WHEN_PRERENDER_SHOWN
The HTTPFollow-Only-When-Prerender-Shown
header field name.static final String
HttpHeaders.Names.PUBLIC_KEY_PINS
The HTTPPublic-Key-Pins
header field name.static final String
HttpHeaders.Names.PUBLIC_KEY_PINS_REPORT_ONLY
The HTTPPublic-Key-Pins-Report-Only
header field name.static final String
HttpHeaders.Names.X_DOWNLOAD_OPTIONS
The HTTPX-Download-Options
header field name. -
Uses of Beta in com.landawn.abacus.parser
Modifier and TypeMethodDescriptionParserUtil.BeanInfo.createBeanResult()
<T> T
ParserUtil.BeanInfo.finishBeanResult
(Object result) -
Uses of Beta in com.landawn.abacus.util
Modifier and TypeClassDescriptionstatic final class
final class
This class is mainly designed for functional programming.final class
final class
final class
LinkedArrayHashMap<K,
V> It's designed to supported primitive/object array key.final class
It's designed to supported primitive/object array.interface
One-off Object.static class
One-off Object.static class
One-off Object.static class
One-off Object.static class
One-off Object.static class
One-off Object.static class
One-off Object.static class
One-off Object.static class
One-off Object.static class
One-off Object.static class
One-off Object.static class
One-off Object.static class
One-off Object.static class
One-off Object.static class
One-off Object.final class
final class
ObjectPool<K,
V> It's is a multiple-thread safety map with fixed size.static class
Result.R<T>
static final class
final class
A table of constant Strings/chars.Modifier and TypeFieldDescriptionstatic final char
Strings.CHAR_CR
static final char
Strings.CHAR_LF
static final char
Strings.CHAR_SPACE
static final char
Strings.CHAR_ZERO
static final String
Strings.NULL_STRING
String with value"null"
.Modifier and TypeMethodDescription<TT,
EE extends Exception>
ExceptionalStream<TT,EE> ExceptionalStream.__
(Function<? super ExceptionalStream<T, E>, ExceptionalStream<TT, EE>> transfer) static <T> Consumer<T>
static <T> Consumer<T>
Fn.acceptIfOrElse
(Predicate<? super T> predicate, Consumer<? super T> consumerForTrue, Consumer<? super T> consumerForFalse) static ByteBiFunction<MergeResult>
Fn.FnB.alternated()
Deprecated.static CharBiFunction<MergeResult>
Fn.FnC.alternated()
Deprecated.static DoubleBiFunction<MergeResult>
Fn.FnD.alternated()
Deprecated.static FloatBiFunction<MergeResult>
Fn.FnF.alternated()
Deprecated.static IntBiFunction<MergeResult>
Fn.FnI.alternated()
Deprecated.static LongBiFunction<MergeResult>
Fn.FnL.alternated()
Deprecated.static ShortBiFunction<MergeResult>
Fn.FnS.alternated()
Deprecated.static <T,
R> Function<T, R> Fn.applyIfOrElseDefault
(Predicate<? super T> predicate, Function<? super T, ? extends R> func, R defaultValue) static <T,
R> Function<T, R> Fn.applyIfOrElseGet
(Predicate<? super T> predicate, Function<? super T, ? extends R> func, Supplier<? extends R> supplier) static <T,
E extends Exception>
voidN.applyToEach
(List<T> c, Throwables.Function<? super T, ? extends T, E> converter) static <T,
E extends Exception>
voidN.applyToEach
(T[] a, Throwables.Function<? super T, ? extends T, E> converter) Updates each element in the specified arraya
with specified functionconverter
.boolean[]
BooleanList.array()
Returns the original element array without copying.byte[]
ByteList.array()
Returns the original element array without copying.char[]
CharList.array()
Returns the original element array without copying.double[]
DoubleList.array()
Returns the original element array without copying.float[]
FloatList.array()
Returns the original element array without copying.int[]
IntList.array()
Returns the original element array without copying.long[]
LongList.array()
Returns the original element array without copying.abstract A
PrimitiveList.array()
Deprecated.short[]
ShortList.array()
Returns the original element array without copying.<R> ContinuableFuture<R>
ExceptionalStream.asyncCall
(Throwables.Function<? super ExceptionalStream<T, E>, R, ? extends Exception> terminalAction) <R> ContinuableFuture<R>
ExceptionalStream.asyncCall
(Throwables.Function<? super ExceptionalStream<T, E>, R, ? extends Exception> terminalAction, Executor executor) ExceptionalStream.asyncRun
(Throwables.Consumer<? super ExceptionalStream<T, E>, ? extends Exception> terminalAction) ExceptionalStream.asyncRun
(Throwables.Consumer<? super ExceptionalStream<T, E>, ? extends Exception> terminalAction, Executor executor) static <A,
B, T> Consumer<T> Fn.c
(A a, B b, TriConsumer<A, B, T> triConsumer) static <A,
T, U> BiConsumer<T, U> Fn.c
(A a, TriConsumer<A, T, U> triConsumer) static <A,
T> Consumer<T> Fn.c
(A a, BiConsumer<A, T> biConsumer) static <T,
U> BiConsumer<T, U> Fn.c
(BiConsumer<T, U> biConsumer) static <T> Consumer<T>
static <A,
B, C> TriConsumer<A, B, C> Fn.c
(TriConsumer<A, B, C> triConsumer) static <A,
B, T, E extends Throwable>
Throwables.Consumer<T,E> Fn.Fnn.c
(A a, B b, Throwables.TriConsumer<A, B, T, E> triConsumer) static <A,
T, E extends Throwable>
Throwables.Consumer<T,E> Fn.Fnn.c
(A a, Throwables.BiConsumer<A, T, E> biConsumer) static <A,
T, U, E extends Throwable>
Throwables.BiConsumer<T,U, E> Fn.Fnn.c
(A a, Throwables.TriConsumer<A, T, U, E> triConsumer) static <T,
U, E extends Throwable>
Throwables.BiConsumer<T,U, E> Fn.Fnn.c
(Throwables.BiConsumer<T, U, E> biConsumer) static <T,
E extends Throwable>
Throwables.Consumer<T,E> Fn.Fnn.c
(Throwables.Consumer<T, E> predicate) static <A,
B, C, E extends Throwable>
Throwables.TriConsumer<A,B, C, E> Fn.Fnn.c
(Throwables.TriConsumer<A, B, C, E> triConsumer) ExceptionalStream.cast()
static <T> u.Nullable<T>
N.castIfAssignable
(Object val, Class<? extends T> targetType) Returns an emptyNullable
ifval
isnull
whiletargetType
is primitive or can not be assigned totargetType
.Fn.cc
(A a, B b, Throwables.TriConsumer<A, B, T, E> triConsumer) Fn.cc
(A a, Throwables.BiConsumer<A, T, E> biConsumer) static <A,
T, U, E extends Exception>
BiConsumer<T,U> Fn.cc
(A a, Throwables.TriConsumer<A, T, U, E> triConsumer) static <T,
U, E extends Exception>
BiConsumer<T,U> Fn.cc
(Throwables.BiConsumer<T, U, E> biConsumer) Fn.cc
(Throwables.Consumer<T, E> consumer) static <A,
B, C, E extends Exception>
TriConsumer<A,B, C> Fn.cc
(Throwables.TriConsumer<A, B, C, E> triConsumer) static <A,
B, T, E extends Throwable>
Throwables.Consumer<T,E> Fn.Fnn.cc
(A a, B b, TriConsumer<A, B, T> triConsumer) static <A,
T, U, E extends Throwable>
Throwables.BiConsumer<T,U, E> Fn.Fnn.cc
(A a, TriConsumer<A, T, U> triConsumer) static <A,
T, E extends Throwable>
Throwables.Consumer<T,E> Fn.Fnn.cc
(A a, BiConsumer<A, T> biConsumer) static <T,
U, E extends Throwable>
Throwables.BiConsumer<T,U, E> Fn.Fnn.cc
(BiConsumer<T, U> biConsumer) static <T,
E extends Throwable>
Throwables.Consumer<T,E> static <A,
B, C, E extends Throwable>
Throwables.TriConsumer<A,B, C, E> Fn.Fnn.cc
(TriConsumer<A, B, C> triConsumer) static <T,
U extends Comparable<? super U>>
Comparator<T>Comparators.comparingByIfNotNullOrElseNullsFirst
(Function<? super T, ? extends U> keyMapper) static <T,
U extends Comparable<? super U>>
Comparator<T>Comparators.comparingByIfNotNullOrElseNullsLast
(Function<? super T, ? extends U> keyMapper) static <T> Predicate<T>
Fn.Predicates.concurrentDistinct()
Returns a statefulPredicate
.static <T> Predicate<T>
Fn.Predicates.concurrentDistinctBy
(Function<? super T, ?> mapper) Returns a statefulPredicate
.static String[]
Strings.copyThenStrip
(String[] strs) static String[]
Strings.copyThenTrim
(String[] strs) DataSet.cube
(Collection<String> columnNames) DataSet.cube
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper) DataSet.cube
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, String aggregateOnColumnName, Throwables.Function<Stream<T>, ?, E2> func) DataSet.cube
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, String aggregateOnColumnName, Collector<T, ?, ?> collector) DataSet.cube
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, U, E2> rowMapper, Collector<? super U, ?, ?> collector) DataSet.cube
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Class<?> rowClass) DataSet.cube
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Collector<? super Object[], ?, ?> collector) DataSet.cube
(Collection<String> columnNames, String aggregateResultColumnName, String aggregateOnColumnName, Throwables.Function<Stream<T>, ?, E> func) DataSet.cube
(Collection<String> columnNames, String aggregateResultColumnName, String aggregateOnColumnName, Collector<T, ?, ?> collector) DataSet.cube
(Collection<String> columnNames, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, U, E> rowMapper, Collector<? super U, ?, ?> collector) DataSet.cube
(Collection<String> columnNames, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Class<?> rowClass) DataSet.cube
(Collection<String> columnNames, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Collector<? super Object[], ?, ?> collector) static <T> Predicate<T>
Fn.Predicates.distinct()
Returns a statefulPredicate
.static <T> Predicate<T>
Fn.Predicates.distinctBy
(Function<? super T, ?> mapper) Returns a statefulPredicate
.static <K,
V, E extends Exception>
Throwables.Consumer<Map.Entry<K,V>, E> Fn.Entries.ec
(Throwables.BiConsumer<? super K, ? super V, E> c) static <K,
V, T, E extends Exception>
Throwables.Function<Map.Entry<K,V>, T, E> Fn.Entries.ef
(Throwables.BiFunction<? super K, ? super V, ? extends T, E> f) ExceptionalStream.elementAt
(long position) static <K,
V, E extends Exception>
Throwables.Predicate<Map.Entry<K,V>, E> Fn.Entries.ep
(Throwables.BiPredicate<? super K, ? super V, E> p) static <A,
B, T, R> Function<T, R> Fn.f
(A a, B b, TriFunction<A, B, T, R> triFunction) static <A,
T, U, R> BiFunction<T, U, R> Fn.f
(A a, TriFunction<A, T, U, R> triFunction) static <A,
T, R> Function<T, R> Fn.f
(A a, BiFunction<A, T, R> biFunction) static <T,
U, R> BiFunction<T, U, R> Fn.f
(BiFunction<T, U, R> biFunction) static <T,
R> Function<T, R> static <A,
B, C, R> TriFunction<A, B, C, R> Fn.f
(TriFunction<A, B, C, R> triFunction) static <A,
B, T, R, E extends Throwable>
Throwables.Function<T,R, E> Fn.Fnn.f
(A a, B b, Throwables.TriFunction<A, B, T, R, E> triFunction) static <A,
T, R, E extends Throwable>
Throwables.Function<T,R, E> Fn.Fnn.f
(A a, Throwables.BiFunction<A, T, R, E> biFunction) static <A,
T, U, R, E extends Throwable>
Throwables.BiFunction<T,U, R, E> Fn.Fnn.f
(A a, Throwables.TriFunction<A, T, U, R, E> triFunction) static <T,
U, R, E extends Throwable>
Throwables.BiFunction<T,U, R, E> Fn.Fnn.f
(Throwables.BiFunction<T, U, R, E> biFunction) static <T,
R, E extends Throwable>
Throwables.Function<T,R, E> Fn.Fnn.f
(Throwables.Function<T, R, E> predicate) static <A,
B, C, R, E extends Throwable>
Throwables.TriFunction<A,B, C, R, E> Fn.Fnn.f
(Throwables.TriFunction<A, B, C, R, E> triFunction) Fn.ff
(A a, B b, Throwables.TriFunction<A, B, T, R, E> triFunction) Fn.ff
(A a, Throwables.BiFunction<A, T, R, E> biFunction) static <A,
T, U, R, E extends Exception>
BiFunction<T,U, R> Fn.ff
(A a, Throwables.TriFunction<A, T, U, R, E> triFunction) static <T,
U, R, E extends Exception>
BiFunction<T,U, R> Fn.ff
(Throwables.BiFunction<T, U, R, E> biFunction) static <T,
U, R, E extends Exception>
BiFunction<T,U, R> Fn.ff
(Throwables.BiFunction<T, U, R, E> biFunction, R defaultOnError) Fn.ff
(Throwables.Function<T, ? extends R, E> function) Fn.ff
(Throwables.Function<T, ? extends R, E> function, R defaultOnError) static <A,
B, C, R, E extends Exception>
TriFunction<A,B, C, R> Fn.ff
(Throwables.TriFunction<A, B, C, R, E> triFunction) static <A,
B, C, R, E extends Exception>
TriFunction<A,B, C, R> Fn.ff
(Throwables.TriFunction<A, B, C, R, E> triFunction, R defaultOnError) static <A,
B, T, R, E extends Throwable>
Throwables.Function<T,R, E> Fn.Fnn.ff
(A a, B b, TriFunction<A, B, T, R> triFunction) static <A,
T, U, R, E extends Throwable>
Throwables.BiFunction<T,U, R, E> Fn.Fnn.ff
(A a, TriFunction<A, T, U, R> triFunction) static <A,
T, R, E extends Throwable>
Throwables.Function<T,R, E> Fn.Fnn.ff
(A a, BiFunction<A, T, R> biFunction) static <T,
U, R, E extends Throwable>
Throwables.BiFunction<T,U, R, E> Fn.Fnn.ff
(BiFunction<T, U, R> biFunction) static <T,
R, E extends Throwable>
Throwables.Function<T,R, E> static <A,
B, C, R, E extends Throwable>
Throwables.TriFunction<A,B, C, R, E> Fn.Fnn.ff
(TriFunction<A, B, C, R> triFunction) ExceptionalStream.filterE
(Throwables.Predicate<? super T, ? extends Exception> predicate) static <T,
U> BiPredicate<T, U> Fn.filterThenLimit
(BiPredicate<T, U> predicate, int limit) Returns a statefulPredicate
.static <T> Predicate<T>
Fn.filterThenLimit
(Predicate<T> predicate, int limit) Returns a statefulPredicate
.static Throwable
N.firstCause
(Throwable e) Returns the specifiedThrowable e
if there is no cause found in it (e.getCause() == null
).static String
Strings.firstChars
(String str, int n) Returns at most firstn
chars of the specifiedString
if its length is bigger thann
, or an empty String""
ifstr
is empty or null, or itself it's length equal to or less thann
.static <K,
E> ListMultimap<K, E> ListMultimap.flatFrom
(Map<? extends K, ? extends Collection<? extends E>> map) static <K,
E> SetMultimap<K, E> SetMultimap.flatFrom
(Map<? extends K, ? extends Collection<? extends E>> map) <R> ExceptionalStream<R,
Exception> ExceptionalStream.flatmapE
(Throwables.Function<? super T, ? extends Collection<? extends R>, ? extends Exception> mapper) <R> ExceptionalStream<R,
Exception> ExceptionalStream.flatMapE
(Throwables.Function<? super T, ? extends ExceptionalStream<? extends R, ? extends Exception>, ? extends Exception> mapper) <R> ExceptionalStream<R,
E> ExceptionalStream.flatMapIfNotNull
(Throwables.Function<? super T, ? extends Collection<? extends R>, ? extends E> mapper) <U,
R> ExceptionalStream<R, E> ExceptionalStream.flatMapIfNotNull
(Throwables.Function<? super T, ? extends Collection<? extends U>, ? extends E> mapper, Throwables.Function<? super U, ? extends Collection<? extends R>, ? extends E> mapper2) <R> ExceptionalStream<R,
E> ExceptionalStream.flatMapp
(Throwables.Function<? super T, ? extends Stream<? extends R>, ? extends E> mapper) ExceptionalStream.flatMapToBoolean
(Throwables.Function<? super T, boolean[], ? extends E> mapper) ExceptionalStream.flatMapToByte
(Throwables.Function<? super T, byte[], ? extends E> mapper) ExceptionalStream.flatMapToChar
(Throwables.Function<? super T, char[], ? extends E> mapper) ExceptionalStream.flatMapToDouble
(Throwables.Function<? super T, double[], ? extends E> mapper) ExceptionalStream.flatMapToFloat
(Throwables.Function<? super T, float[], ? extends E> mapper) ExceptionalStream.flatMapToInteger
(Throwables.Function<? super T, int[], ? extends E> mapper) ExceptionalStream.flatMapToLong
(Throwables.Function<? super T, long[], ? extends E> mapper) ExceptionalStream.flatMapToShort
(Throwables.Function<? super T, short[], ? extends E> mapper) static <T1,
T2, T3> Tuple.Tuple3<T1, T2, T3> Tuple.flatten
(Tuple.Tuple2<Tuple.Tuple2<T1, T2>, T3> tp) static <T1,
T2, T3, T4, T5>
Tuple.Tuple5<T1,T2, T3, T4, T5> Tuple.flatten
(Tuple.Tuple3<Tuple.Tuple3<T1, T2, T3>, T4, T5> tp) static List<?>
N.flattenEachElement
(Iterable<?> iter) Flatten each element if it's aIterable
, otherwise just add it to result Collection.static <T,
C extends Collection<T>>
CN.flattenEachElement
(Iterable<?> iter, IntFunction<? extends C> supplier) Flatten each element if it's aIterable
, otherwise just add it to result Collection.<E2 extends Exception>
voidExceptionalStream.forEachInParallel
(Throwables.Consumer<? super T, E2> action, int threadNum) <E2 extends Exception>
voidExceptionalStream.forEachInParallel
(Throwables.Consumer<? super T, E2> action, int threadNum, Executor executor) <E2 extends Exception>
voidExceptionalStream.forEachUntil
(MutableBoolean flagToBreak, Throwables.Consumer<? super T, E2> action) Iterate and executeaction
untilflagToBreak
is set true.<E2 extends Exception>
voidExceptionalStream.forEachUntil
(Throwables.BiConsumer<? super T, MutableBoolean, E2> action) Iterate and executeaction
until the flag is set true.static <T,
U, E extends Throwable>
Throwables.BiConsumer<T,U, E> Fn.Fnn.from
(BiConsumer<T, U> consumer) static <T,
U, R, E extends Throwable>
Throwables.BiFunction<T,U, R, E> Fn.Fnn.from
(BiFunction<T, U, ? extends R> function) static <T,
E extends Throwable>
Throwables.BinaryOperator<T,E> Fn.Fnn.from
(BinaryOperator<T> op) static <T,
U, E extends Throwable>
Throwables.BiPredicate<T,U, E> Fn.Fnn.from
(BiPredicate<T, U> predicate) static <T,
E extends Throwable>
Throwables.Consumer<T,E> static <T,
R, E extends Throwable>
Throwables.Function<T,R, E> static <T,
E extends Throwable>
Throwables.IntFunction<T,E> Fn.Fnn.from
(IntFunction<? extends T> func) static <T,
E extends Throwable>
Throwables.Predicate<T,E> static <T,
E extends Throwable>
Throwables.Supplier<T,E> static <T,
E extends Throwable>
Throwables.UnaryOperator<T,E> Fn.Fnn.from
(UnaryOperator<T> op) static <T,
U> BiConsumer<T, U> Fn.from
(BiConsumer<T, U> consumer) static <T,
U, R> BiFunction<T, U, R> Fn.from
(BiFunction<T, U, ? extends R> function) static <T> BinaryOperator<T>
Fn.from
(BinaryOperator<T> op) static <T,
U> BiPredicate<T, U> Fn.from
(BiPredicate<T, U> predicate) static <T> Consumer<T>
static <T,
R> Function<T, R> static <T> IntFunction<T>
Fn.from
(IntFunction<? extends T> func) static <T> Predicate<T>
static <T> Supplier<T>
static <T> UnaryOperator<T>
Fn.from
(UnaryOperator<T> op) static <T,
V> LongMultiset<T> LongMultiset.from
(Map<? extends T, ? extends V> m, ToLongFunction<? super V> valueMapper) static <TP extends Tuple<TP>>
TPstatic <TP extends Tuple<TP>>
TPTuple.from
(Collection<?> c) static <K,
V> Tuple.Tuple2<K, V> Fn.futureGet()
Fn.futureGetOrDefaultOnError
(T defaultValue) static char[]
InternalUtil.getCharsForReadOnly
(String str) Deprecated.DO NOT call the methods defined in this class.Result.getException()
Returns theException
if occurred, otherwisenull
is returned.Result.getExceptionIfPresent()
Deprecated.replaced bygetException
N.groupBy
(Iterable<? extends T> iter, Throwables.Function<? super T, ? extends K, E> keyExtractor) N.groupBy
(Iterable<? extends T> iter, Throwables.Function<? super T, ? extends K, E> keyExtractor, Supplier<M> mapSupplier) N.groupBy
(Iterator<? extends T> iter, Throwables.Function<? super T, ? extends K, E> keyExtractor) N.groupBy
(Iterator<? extends T> iter, Throwables.Function<? super T, ? extends K, E> keyExtractor, Supplier<M> mapSupplier) N.groupBy
(T[] a, int fromIndex, int toIndex, Throwables.Function<? super T, ? extends K, E> keyExtractor) N.groupBy
(T[] a, int fromIndex, int toIndex, Throwables.Function<? super T, ? extends K, E> keyExtractor, Supplier<M> mapSupplier) N.groupBy
(T[] a, Throwables.Function<? super T, ? extends K, E> keyExtractor) N.groupBy
(T[] a, Throwables.Function<? super T, ? extends K, E> keyExtractor, Supplier<M> mapSupplier) static boolean
N.ifOrElse
(boolean b, Throwables.Runnable<E1> actionForTrue, Throwables.Runnable<E2> actionForFalse) If or else.N.ifOrElse
(boolean b, T init, Throwables.Consumer<? super T, E1> actionForTrue, Throwables.Consumer<? super T, E2> actionForFalse) If or else.static <R,
E extends Exception>
u.Nullable<R>N.ifOrEmpty
(boolean b, Throwables.Supplier<R, E> supplier) Returns aNullable
with value got from the specifiedsupplier
ifb
istrue
, otherwise returns an emptyNullable
ifb
is false.static <T,
R, E extends Exception>
u.Nullable<R>N.ifOrEmpty
(boolean b, T init, Throwables.Function<? super T, ? extends R, E> func) Returns aNullable
with value returned byfunc.apply(init)
ifb
istrue
, otherwise returns an emptyNullable
ifb
is false.BooleanIterator.indexed()
BooleanIterator.indexed
(long startIndex) ByteIterator.indexed()
ByteIterator.indexed
(long startIndex) CharIterator.indexed()
CharIterator.indexed
(long startIndex) DoubleIterator.indexed()
DoubleIterator.indexed
(long startIndex) ExceptionalStream.indexed()
FloatIterator.indexed()
FloatIterator.indexed
(long startIndex) static <T,
U> BiConsumer<T, U> Fn.BiConsumers.indexed
(IndexedBiConsumer<T, U> action) Returns a statefulBiPredicate
.static <T,
U, R> BiFunction<T, U, R> Fn.BiFunctions.indexed
(IndexedBiFunction<T, U, ? extends R> func) Returns a statefulBiPredicate
.static <T,
U> BiPredicate<T, U> Fn.BiPredicates.indexed
(IndexedBiPredicate<T, U> predicate) Returns a statefulBiPredicate
.static <T> Consumer<T>
Fn.Consumers.indexed
(IndexedConsumer<T> action) Returns a statefulBiPredicate
.static <T,
R> Function<T, R> Fn.Functions.indexed
(IndexedFunction<T, ? extends R> func) Returns a statefulFunction
.Fn.indexed()
Returns a statefulPredicate
.static <T> Predicate<T>
Fn.indexed
(IndexedPredicate<T> predicate) Returns a statefulPredicate
.static <T> Predicate<T>
Fn.Predicates.indexed
(IndexedPredicate<T> predicate) Returns a statefulPredicate
.IntIterator.indexed()
IntIterator.indexed
(long startIndex) LongIterator.indexed()
LongIterator.indexed
(long startIndex) ObjIterator.indexed()
ObjIterator.indexed
(long startIndex) ShortIterator.indexed()
ShortIterator.indexed
(long startIndex) static void
N.invert
(boolean[] a) Inverts the element fromfromIndex
totoIndex
: set it totrue
if it'sfalse
, or set it tofalse
if it'strue
.static void
N.invert
(boolean[] a, int fromIndex, int toIndex) Inverts the element fromfromIndex
totoIndex
: set it totrue
if it'sfalse
, or set it tofalse
if it'strue
.static <T,
E extends Exception>
Throwables.Predicate<T,E> Fn.Fnn.isNull()
static <T,
E extends Exception>
Throwables.Predicate<T[],E> Fn.Fnn.isNullOrEmptyA()
static <T> Predicate<T[]>
Fn.isNullOrEmptyA()
static <T extends Collection,
E extends Exception>
Throwables.Predicate<T,E> Fn.Fnn.isNullOrEmptyC()
static <T extends Collection>
Predicate<T>Fn.isNullOrEmptyC()
static <T extends Map,
E extends Exception>
Throwables.Predicate<T,E> Fn.Fnn.isNullOrEmptyM()
Fn.isNullOrEmptyM()
static <T> Iterator<T>
static <T> ObjIterator<T>
N.iterate
(T[] a) static <T> ObjIterator<T>
N.iterate
(T[] a, int fromIndex, int toIndex) ExceptionalStream.last
(int n) A queue with size up ton
will be maintained to filter out the lastn
elements.static String
Returns at most lastn
chars of the specifiedString
if its length is bigger thann
, or an empty String""
ifstr
is empty or null, or itself it's length equal to or less thann
.static <T> LazyInitializer<T>
static <T,
E extends Exception>
Throwables.LazyInitializer<T,E> N.lazyInitialize
(Throwables.Supplier<T, E> supplier) static <T,
U> BiPredicate<T, U> Fn.limitThenFilter
(int limit, BiPredicate<T, U> predicate) Returns a statefulPredicate
.static <T> Predicate<T>
Fn.limitThenFilter
(int limit, Predicate<T> predicate) Returns a statefulPredicate
.<U> ObjIterator<U>
<U> ExceptionalStream<U,
Exception> ExceptionalStream.mapE
(Throwables.Function<? super T, ? extends U, ? extends Exception> mapper) <R> ExceptionalStream<R,
E> ExceptionalStream.mapPartial
(Throwables.Function<? super T, u.Optional<? extends R>, E> mapper) Note: copied from StreamEx: https://github.com/amaembo/streamex<R> ExceptionalStream<R,
E> ExceptionalStream.mapPartialJdk
(Throwables.Function<? super T, Optional<? extends R>, E> mapper) Note: copied from StreamEx: https://github.com/amaembo/streamexExceptionalStream.mapPartialToDouble
(Throwables.Function<? super T, u.OptionalDouble, E> mapper) Note: copied from StreamEx: https://github.com/amaembo/streamexExceptionalStream.mapPartialToDoubleJdk
(Throwables.Function<? super T, OptionalDouble, E> mapper) Note: copied from StreamEx: https://github.com/amaembo/streamexExceptionalStream.mapPartialToInt
(Throwables.Function<? super T, u.OptionalInt, E> mapper) Note: copied from StreamEx: https://github.com/amaembo/streamexExceptionalStream.mapPartialToIntJdk
(Throwables.Function<? super T, OptionalInt, E> mapper) Note: copied from StreamEx: https://github.com/amaembo/streamexExceptionalStream.mapPartialToLong
(Throwables.Function<? super T, u.OptionalLong, E> mapper) Note: copied from StreamEx: https://github.com/amaembo/streamexExceptionalStream.mapPartialToLongJdk
(Throwables.Function<? super T, OptionalLong, E> mapper) Note: copied from StreamEx: https://github.com/amaembo/streamexstatic <E extends Exception>
double[]N.mapToDouble
(int[] a, Throwables.IntToDoubleFunction<E> mapper) static <E extends Exception>
double[]N.mapToDouble
(long[] a, Throwables.LongToDoubleFunction<E> mapper) static <E extends Exception>
int[]N.mapToInt
(double[] a, Throwables.DoubleToIntFunction<E> mapper) static <E extends Exception>
int[]N.mapToInt
(long[] a, Throwables.LongToIntFunction<E> mapper) static <E extends Exception>
long[]N.mapToLong
(double[] a, Throwables.DoubleToLongFunction<E> mapper) static <E extends Exception>
long[]N.mapToLong
(int[] a, Throwables.IntToLongFunction<E> mapper) static <T,
R> Function<T, R> static <T> Supplier<T>
Returns aSupplier
which returns a single instance created by calling the specifiedsupplier.get()
.static <T,
E extends Exception>
ExceptionalStream<T,E> InternalUtil.newStream
(ExceptionalStream.ExceptionalIterator<T, E> iter) static <T,
E extends Exception>
Throwables.Predicate<T,E> Fn.Fnn.notNull()
static <T,
E extends Exception>
Throwables.Predicate<T[],E> Fn.Fnn.notNullOrEmptyA()
static <T> Predicate<T[]>
Fn.notNullOrEmptyA()
static <T extends Collection,
E extends Exception>
Throwables.Predicate<T,E> Fn.Fnn.notNullOrEmptyC()
static <T extends Collection>
Predicate<T>Fn.notNullOrEmptyC()
static <T extends Map,
E extends Exception>
Throwables.Predicate<T,E> Fn.Fnn.notNullOrEmptyM()
Fn.notNullOrEmptyM()
static <T> Comparator<T>
Comparators.nullsFirstOrElseEqual()
static <T> Comparator<T>
Comparators.nullsLastOrElseEqual()
Fn.Factory.ofDisposableArray()
static <T> IntFunction<NoCachingNoUpdating.DisposableArray<T>>
Fn.Factory.ofDisposableArray
(Class<T> componentType) ExceptionalStream.onEachE
(Throwables.Consumer<? super T, ? extends Exception> action) static <A,
B, T, E extends Throwable>
Throwables.Predicate<T,E> Fn.Fnn.p
(A a, B b, Throwables.TriPredicate<A, B, T, E> triPredicate) static <A,
T, E extends Throwable>
Throwables.Predicate<T,E> Fn.Fnn.p
(A a, Throwables.BiPredicate<A, T, E> biPredicate) static <A,
T, U, E extends Throwable>
Throwables.BiPredicate<T,U, E> Fn.Fnn.p
(A a, Throwables.TriPredicate<A, T, U, E> triPredicate) static <T,
U, E extends Throwable>
Throwables.BiPredicate<T,U, E> Fn.Fnn.p
(Throwables.BiPredicate<T, U, E> biPredicate) static <T,
E extends Throwable>
Throwables.Predicate<T,E> Fn.Fnn.p
(Throwables.Predicate<T, E> predicate) static <A,
B, C, E extends Throwable>
Throwables.TriPredicate<A,B, C, E> Fn.Fnn.p
(Throwables.TriPredicate<A, B, C, E> triPredicate) static <A,
B, T> Predicate<T> Fn.p
(A a, B b, TriPredicate<A, B, T> triPredicate) static <A,
T, U> BiPredicate<T, U> Fn.p
(A a, TriPredicate<A, T, U> triPredicate) static <A,
T> Predicate<T> Fn.p
(A a, BiPredicate<A, T> biPredicate) static <T,
U> BiPredicate<T, U> Fn.p
(BiPredicate<T, U> biPredicate) static <T> Predicate<T>
static <A,
B, C> TriPredicate<A, B, C> Fn.p
(TriPredicate<A, B, C> triPredicate) static Calendar
DateUtil.parseCalendar
(String calendar) Parses the calendar.static Calendar
DateUtil.parseCalendar
(String calendar, String format) Parses the calendar.static Calendar
DateUtil.parseCalendar
(String calendar, String format, TimeZone timeZone) Converts the specifiedcalendar
with the specifiedformat
to a new instance of Calendar.static GregorianCalendar
DateUtil.parseGregorianCalendar
(String calendar) Parses the gregorian calendar.static GregorianCalendar
DateUtil.parseGregorianCalendar
(String calendar, String format) Parses the gregorian calendar.static GregorianCalendar
DateUtil.parseGregorianCalendar
(String calendar, String format, TimeZone timeZone) Converts the specifiedcalendar
with the specifiedformat
to a new instance of GregorianCalendar.static XMLGregorianCalendar
DateUtil.parseXMLGregorianCalendar
(String calendar) Parses the XML gregorian calendar.static XMLGregorianCalendar
DateUtil.parseXMLGregorianCalendar
(String calendar, String format) Parses the XML gregorian calendar.static XMLGregorianCalendar
DateUtil.parseXMLGregorianCalendar
(String calendar, String format, TimeZone timeZone) Converts the specifiedcalendar
with the specifiedformat
to a new instance of XMLGregorianCalendar.ExceptionalStream.peekIf
(Throwables.BiPredicate<? super T, ? super Long, E> predicate, Consumer<? super T> action) static <A,
B, T, E extends Throwable>
Throwables.Predicate<T,E> Fn.Fnn.pp
(A a, B b, TriPredicate<A, B, T> triPredicate) static <A,
T, U, E extends Throwable>
Throwables.BiPredicate<T,U, E> Fn.Fnn.pp
(A a, TriPredicate<A, T, U> triPredicate) static <A,
T, E extends Throwable>
Throwables.Predicate<T,E> Fn.Fnn.pp
(A a, BiPredicate<A, T> biPredicate) static <T,
U, E extends Throwable>
Throwables.BiPredicate<T,U, E> Fn.Fnn.pp
(BiPredicate<T, U> biPredicate) static <T,
E extends Throwable>
Throwables.Predicate<T,E> static <A,
B, C, E extends Throwable>
Throwables.TriPredicate<A,B, C, E> Fn.Fnn.pp
(TriPredicate<A, B, C> triPredicate) Fn.pp
(A a, B b, Throwables.TriPredicate<A, B, T, E> triPredicate) Fn.pp
(A a, Throwables.BiPredicate<A, T, E> biPredicate) static <A,
T, U, E extends Exception>
BiPredicate<T,U> Fn.pp
(A a, Throwables.TriPredicate<A, T, U, E> triPredicate) static <T,
U, E extends Exception>
BiPredicate<T,U> Fn.pp
(Throwables.BiPredicate<T, U, E> biPredicate) Fn.pp
(Throwables.Predicate<T, E> predicate) static <A,
B, C, E extends Exception>
TriPredicate<A,B, C> Fn.pp
(Throwables.TriPredicate<A, B, C, E> triPredicate) void
ExceptionalStream.println()
DataSet.properties()
<E2 extends Exception>
u.Optional<T>ExceptionalStream.reduceUntil
(Throwables.BinaryOperator<T, E2> accumulator, Throwables.Predicate<? super T, E2> conditionToBreak) <U,
E2 extends Exception>
UExceptionalStream.reduceUntil
(U identity, Throwables.BiFunction<U, ? super T, U, E2> accumulator, Throwables.Predicate<? super U, E2> conditionToBreak) static <T,
C extends Collection<T>>
IntFunction<? extends C>Fn.reuse
(IntFunction<? extends C> supplier) Deprecated.static <T,
C extends Collection<T>>
Supplier<? extends C>Deprecated.Pair.reverse()
Returns a new instance of Pair<R, L>.Triple.reverse()
Returns a new instance of Triple<R, M, L>.static <T,
U extends Comparable<? super U>>
Comparator<T>Comparators.reversedComparingByIfNotNullOrElseNullsFirst
(Function<? super T, ? extends U> keyMapper) static <T,
U extends Comparable<? super U>>
Comparator<T>Comparators.reversedComparingByIfNotNullOrElseNullsLast
(Function<? super T, ? extends U> keyMapper) static <K,
V> Comparator<Map.Entry<K, V>> Comparators.reversedComparingByKey
(Comparator<? super K> cmp) Reversed comparing by key.static <K,
V> Comparator<Map.Entry<K, V>> Comparators.reversedComparingByValue
(Comparator<? super V> cmp) Reversed comparing by value.DataSet.rollup
(Collection<String> columnNames) DataSet.rollup
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper) DataSet.rollup
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, String aggregateOnColumnName, Throwables.Function<Stream<T>, ?, E2> func) DataSet.rollup
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, String aggregateOnColumnName, Collector<T, ?, ?> collector) DataSet.rollup
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, U, E2> rowMapper, Collector<? super U, ?, ?> collector) DataSet.rollup
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Class<?> rowClass) DataSet.rollup
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Collector<? super Object[], ?, ?> collector) DataSet.rollup
(Collection<String> columnNames, String aggregateResultColumnName, String aggregateOnColumnName, Throwables.Function<Stream<T>, ?, E> func) DataSet.rollup
(Collection<String> columnNames, String aggregateResultColumnName, String aggregateOnColumnName, Collector<T, ?, ?> collector) DataSet.rollup
(Collection<String> columnNames, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, U, E> rowMapper, Collector<? super U, ?, ?> collector) DataSet.rollup
(Collection<String> columnNames, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Class<?> rowClass) DataSet.rollup
(Collection<String> columnNames, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Collector<? super Object[], ?, ?> collector) static <A,
T, E extends Throwable>
Throwables.Consumer<T,E> Fn.Fnn.sc
(Object mutex, A a, Throwables.BiConsumer<A, T, E> biConsumer) SynchronizedConsumer
.static <T,
U, E extends Throwable>
Throwables.BiConsumer<T,U, E> Fn.Fnn.sc
(Object mutex, Throwables.BiConsumer<T, U, E> biConsumer) SynchronizedBiConsumer
.static <T,
E extends Throwable>
Throwables.Consumer<T,E> Fn.Fnn.sc
(Object mutex, Throwables.Consumer<T, E> consumer) SynchronizedConsumer
.static <A,
T> Consumer<T> Fn.sc
(Object mutex, A a, BiConsumer<A, T> biConsumer) SynchronizedConsumer
.static <T,
U> BiConsumer<T, U> Fn.sc
(Object mutex, BiConsumer<T, U> biConsumer) SynchronizedBiConsumer
.static <T> Consumer<T>
SynchronizedConsumer
.static <A,
T, R, E extends Throwable>
Throwables.Function<T,R, E> Fn.Fnn.sf
(Object mutex, A a, Throwables.BiFunction<A, T, R, E> biFunction) SynchronizedFunction
.static <T,
U, R, E extends Throwable>
Throwables.BiFunction<T,U, R, E> Fn.Fnn.sf
(Object mutex, Throwables.BiFunction<T, U, R, E> biFunction) SynchronizedBiFunction
.static <T,
R, E extends Throwable>
Throwables.Function<T,R, E> Fn.Fnn.sf
(Object mutex, Throwables.Function<T, ? extends R, E> function) SynchronizedFunction
.static <A,
T, R> Function<T, R> Fn.sf
(Object mutex, A a, BiFunction<A, T, R> biFunction) SynchronizedFunction
.static <T,
U, R> BiFunction<T, U, R> Fn.sf
(Object mutex, BiFunction<T, U, R> biFunction) SynchronizedBiFunction
.static <T,
R> Function<T, R> SynchronizedFunction
.static <T> Predicate<T>
Fn.Predicates.skipRepeats()
Returns a statefulPredicate
.ExceptionalStream.skipUntil
(Throwables.Predicate<? super T, ? extends E> predicate) static <A,
B, T, E extends Throwable>
Throwables.Predicate<T,E> Fn.Fnn.sp
(Object mutex, A a, B b, Throwables.TriPredicate<A, B, T, E> triPredicate) SynchronizedPredicate
.static <A,
T, E extends Throwable>
Throwables.Predicate<T,E> Fn.Fnn.sp
(Object mutex, A a, Throwables.BiPredicate<A, T, E> biPredicate) SynchronizedPredicate
.static <T,
U, E extends Throwable>
Throwables.BiPredicate<T,U, E> Fn.Fnn.sp
(Object mutex, Throwables.BiPredicate<T, U, E> biPredicate) SynchronizedBiPredicate
.static <T,
E extends Throwable>
Throwables.Predicate<T,E> Fn.Fnn.sp
(Object mutex, Throwables.Predicate<T, E> predicate) SynchronizedPredicate
.static <A,
B, T> Predicate<T> Fn.sp
(Object mutex, A a, B b, TriPredicate<A, B, T> triPredicate) SynchronizedPredicate
.static <A,
T> Predicate<T> Fn.sp
(Object mutex, A a, BiPredicate<A, T> biPredicate) SynchronizedPredicate
.static <T,
U> BiPredicate<T, U> Fn.sp
(Object mutex, BiPredicate<T, U> biPredicate) SynchronizedBiPredicate
.static <T> Predicate<T>
SynchronizedPredicate
.<R> ExceptionalStream<R,
E> ExceptionalStream.sps
(int maxThreadNum, Function<? super Stream<T>, ? extends Stream<? extends R>> ops) Temporarily switch the stream to parallel stream for operationops
and then switch back to sequence stream.<R> ExceptionalStream<R,
E> Temporarily switch the stream to parallel stream for operationops
and then switch back to sequence stream.ExceptionalStream.spsFilter
(int maxThreadNum, Throwables.Predicate<? super T, E> predicate) Temporarily switch the stream to parallel stream for operationfilter
and then switch back to sequence stream.ExceptionalStream.spsFilter
(Throwables.Predicate<? super T, E> predicate) Temporarily switch the stream to parallel stream for operationfilter
and then switch back to sequence stream.ExceptionalStream.spsFilterE
(int maxThreadNum, Throwables.Predicate<? super T, ? extends Exception> predicate) Temporarily switch the stream to parallel stream for operationfilter
and then switch back to sequence stream.ExceptionalStream.spsFilterE
(Throwables.Predicate<? super T, ? extends Exception> predicate) Temporarily switch the stream to parallel stream for operationfilter
and then switch back to sequence stream.<R> ExceptionalStream<R,
E> ExceptionalStream.spsFlatmap
(int maxThreadNum, Throwables.Function<? super T, ? extends Collection<? extends R>, E> mapper) Temporarily switch the stream to parallel stream for operationflatMap
and then switch back to sequence stream.<R> ExceptionalStream<R,
E> ExceptionalStream.spsFlatmap
(Throwables.Function<? super T, ? extends Collection<? extends R>, E> mapper) Temporarily switch the stream to parallel stream for operationflatMap
and then switch back to sequence stream.<R> ExceptionalStream<R,
E> ExceptionalStream.spsFlatMap
(int maxThreadNum, Throwables.Function<? super T, ? extends Stream<? extends R>, E> mapper) Temporarily switch the stream to parallel stream for operationflatMap
and then switch back to sequence stream.<R> ExceptionalStream<R,
E> ExceptionalStream.spsFlatMap
(Throwables.Function<? super T, ? extends Stream<? extends R>, E> mapper) Temporarily switch the stream to parallel stream for operationflatMap
and then switch back to sequence stream.<R> ExceptionalStream<R,
Exception> ExceptionalStream.spsFlatmapE
(int maxThreadNum, Throwables.Function<? super T, ? extends Collection<? extends R>, ? extends Exception> mapper) Temporarily switch the stream to parallel stream for operationflatMap
and then switch back to sequence stream.<R> ExceptionalStream<R,
Exception> ExceptionalStream.spsFlatmapE
(Throwables.Function<? super T, ? extends Collection<? extends R>, ? extends Exception> mapper) Temporarily switch the stream to parallel stream for operationflatMap
and then switch back to sequence stream.<R> ExceptionalStream<R,
Exception> ExceptionalStream.spsFlatMapE
(int maxThreadNum, Throwables.Function<? super T, ? extends Stream<? extends R>, ? extends Exception> mapper) Temporarily switch the stream to parallel stream for operationflatMap
and then switch back to sequence stream.<R> ExceptionalStream<R,
Exception> ExceptionalStream.spsFlatMapE
(Throwables.Function<? super T, ? extends Stream<? extends R>, ? extends Exception> mapper) Temporarily switch the stream to parallel stream for operationflatMap
and then switch back to sequence stream.<R> ExceptionalStream<R,
E> ExceptionalStream.spsMap
(int maxThreadNum, Throwables.Function<? super T, ? extends R, E> mapper) Temporarily switch the stream to parallel stream for operationmap
and then switch back to sequence stream.<R> ExceptionalStream<R,
E> ExceptionalStream.spsMap
(Throwables.Function<? super T, ? extends R, E> mapper) Temporarily switch the stream to parallel stream for operationmap
and then switch back to sequence stream.<U> ExceptionalStream<U,
Exception> ExceptionalStream.spsMapE
(int maxThreadNum, Throwables.Function<? super T, ? extends U, ? extends Exception> mapper) Temporarily switch the stream to parallel stream for operationmap
and then switch back to sequence stream.<U> ExceptionalStream<U,
Exception> ExceptionalStream.spsMapE
(Throwables.Function<? super T, ? extends U, ? extends Exception> mapper) Temporarily switch the stream to parallel stream for operationmap
and then switch back to sequence stream.ExceptionalStream.spsOnEach
(int maxThreadNum, Throwables.Consumer<? super T, E> action) Temporarily switch the stream to parallel stream for operationonEach
and then switch back to sequence stream.ExceptionalStream.spsOnEach
(Throwables.Consumer<? super T, E> action) Temporarily switch the stream to parallel stream for operationonEach
and then switch back to sequence stream.ExceptionalStream.spsOnEachE
(int maxThreadNum, Throwables.Consumer<? super T, ? extends Exception> action) Temporarily switch the stream to parallel stream for operationonEach
and then switch back to sequence stream.ExceptionalStream.spsOnEachE
(Throwables.Consumer<? super T, ? extends Exception> action) Temporarily switch the stream to parallel stream for operationonEach
and then switch back to sequence stream.ExceptionalStream.step
(long step) static u.Optional<String>
Strings.MoreStringUtil.substringAfter
(String str, char delimiterOfExclusiveBeginIndex) Returns the substring after firstdelimiterOfExclusiveBeginIndex
if it exists, otherwise returnnull
String.static u.Optional<String>
Strings.MoreStringUtil.substringAfter
(String str, String delimiterOfExclusiveBeginIndex) Returns the substring after firstdelimiterOfExclusiveBeginIndex
if it exists, otherwise returnnull
String.static u.Optional<String>
Strings.MoreStringUtil.substringAfter
(String str, String delimiterOfExclusiveBeginIndex, int exclusiveEndIndex) Returns the substring after firstdelimiterOfExclusiveBeginIndex
if it exists, otherwise returnnull
String.static u.Optional<String>
Strings.MoreStringUtil.substringAfterAny
(String str, char... delimitersOfExclusiveBeginIndex) Returns the substring after any ofdelimitersOfExclusiveBeginIndex
if it exists, otherwise returnnull
String.static u.Optional<String>
Strings.MoreStringUtil.substringAfterAny
(String str, String... delimitersOfExclusiveBeginIndex) Returns the substring after any ofdelimitersOfExclusiveBeginIndex
if it exists, otherwise returnnull
String.static u.Optional<String>
Strings.MoreStringUtil.substringAfterLast
(String str, char delimiterOfExclusiveBeginIndex) Returns the substring after lastdelimiterOfExclusiveBeginIndex
if it exists, otherwise returnnull
String.static u.Optional<String>
Strings.MoreStringUtil.substringAfterLast
(String str, String delimiterOfExclusiveBeginIndex) Returns the substring after lastdelimiterOfExclusiveBeginIndex
if it exists, otherwise returnnull
String.static u.Optional<String>
Strings.MoreStringUtil.substringAfterLast
(String str, String delimiterOfExclusiveBeginIndex, int exclusiveEndIndex) Returns the substring after lastdelimiterOfExclusiveBeginIndex
if it exists, otherwise returnnull
String.static String
Strings.MoreStringUtil.substringAfterLastOrElse
(String str, String delimiterOfExclusiveBeginIndex, String defaultStr) Returns the substring after lastdelimiterOfExclusiveBeginIndex
if it exists, otherwise returndefaultStr
.static String
Strings.MoreStringUtil.substringAfterLastOrElseItself
(String str, char delimiterOfExclusiveBeginIndex) Returns the substring after lastdelimiterOfExclusiveBeginIndex
if it exists, otherwise return the inputstr
.static String
Strings.MoreStringUtil.substringAfterLastOrElseItself
(String str, String delimiterOfExclusiveBeginIndex) Returns the substring after lastdelimiterOfExclusiveBeginIndex
if it exists, otherwise return the inputstr
.static String
Strings.MoreStringUtil.substringAfterLastOrElseItself
(String str, String delimiterOfExclusiveBeginIndex, int exclusiveEndIndex) Returns the substring after lastdelimiterOfExclusiveBeginIndex
if it exists, otherwise return the inputstr
.static String
Strings.MoreStringUtil.substringAfterOrElse
(String str, String delimiterOfExclusiveBeginIndex, String defaultStr) Returns the substring after firstdelimiterOfExclusiveBeginIndex
if it exists, otherwise returndefaultStr
.static String
Strings.MoreStringUtil.substringAfterOrElseItself
(String str, char delimiterOfExclusiveBeginIndex) Returns the substring after firstdelimiterOfExclusiveBeginIndex
if it exists, otherwise return the inputstr
.static String
Strings.MoreStringUtil.substringAfterOrElseItself
(String str, String delimiterOfExclusiveBeginIndex) Returns the substring after firstdelimiterOfExclusiveBeginIndex
if it exists, otherwise return the inputstr
.static String
Strings.MoreStringUtil.substringAfterOrElseItself
(String str, String delimiterOfExclusiveBeginIndex, int exclusiveEndIndex) Returns the substring after firstdelimiterOfExclusiveBeginIndex
if it exists, otherwise return the inputstr
.static u.Optional<String>
Strings.MoreStringUtil.substringBefore
(String str, char delimiterOfExclusiveEndIndex) Returns the substring before firstdelimiterOfExclusiveBeginIndex
if it exists, otherwise returnnull
String.static u.Optional<String>
Strings.MoreStringUtil.substringBefore
(String str, int inclusiveBeginIndex, String delimiterOfExclusiveEndIndex) Returns the substring before firstdelimiterOfExclusiveBeginIndex
if it exists, otherwise returnnull
String.static u.Optional<String>
Strings.MoreStringUtil.substringBefore
(String str, String delimiterOfExclusiveEndIndex) Returns the substring before firstdelimiterOfExclusiveBeginIndex
if it exists, otherwise returnnull
String.static u.Optional<String>
Strings.MoreStringUtil.substringBeforeAny
(String str, char... delimitersOfExclusiveEndIndex) Returns the substring before any ofdelimitersOfExclusiveEndIndex
if it exists, otherwise returnnull
String.static u.Optional<String>
Strings.MoreStringUtil.substringBeforeAny
(String str, String... delimitersOfExclusiveEndIndex) Returns the substring before any ofdelimitersOfExclusiveEndIndex
if it exists, otherwise returnnull
String.static u.Optional<String>
Strings.MoreStringUtil.substringBeforeLast
(String str, char delimiterOfExclusiveEndIndex) Returns the substring last firstdelimiterOfExclusiveBeginIndex
if it exists, otherwise returnnull
String.static u.Optional<String>
Strings.MoreStringUtil.substringBeforeLast
(String str, int inclusiveBeginIndex, String delimiterOfExclusiveEndIndex) Returns the substring last firstdelimiterOfExclusiveBeginIndex
if it exists, otherwise returnnull
String.static u.Optional<String>
Strings.MoreStringUtil.substringBeforeLast
(String str, String delimiterOfExclusiveEndIndex) Returns the substring last firstdelimiterOfExclusiveBeginIndex
if it exists, otherwise returnnull
String.static String
Strings.MoreStringUtil.substringBeforeLastOrElse
(String str, String delimiterOfExclusiveEndIndex, String defaultStr) Returns the substring last firstdelimiterOfExclusiveBeginIndex
if it exists, otherwise returndefaultStr
.static String
Strings.MoreStringUtil.substringBeforeLastOrElseItself
(String str, char delimiterOfExclusiveEndIndex) Returns the substring last firstdelimiterOfExclusiveBeginIndex
if it exists, otherwise return the inputstr
.static String
Strings.MoreStringUtil.substringBeforeLastOrElseItself
(String str, int exclusiveEndIndex, String delimiterOfExclusiveEndIndex) Returns the substring last firstdelimiterOfExclusiveBeginIndex
if it exists, otherwise return the inputstr
.static String
Strings.MoreStringUtil.substringBeforeLastOrElseItself
(String str, String delimiterOfExclusiveEndIndex) Returns the substring last firstdelimiterOfExclusiveBeginIndex
if it exists, otherwise return the inputstr
.static String
Strings.MoreStringUtil.substringBeforeOrElse
(String str, String delimiterOfExclusiveEndIndex, String defaultStr) Returns the substring before firstdelimiterOfExclusiveBeginIndex
if it exists, otherwise returndefaultStr
.static String
Strings.MoreStringUtil.substringBeforeOrElseItself
(String str, char delimiterOfExclusiveEndIndex) Returns the substring before firstdelimiterOfExclusiveBeginIndex
if it exists, otherwise return the inputstr
.static String
Strings.MoreStringUtil.substringBeforeOrElseItself
(String str, int inclusiveBeginIndex, String delimiterOfExclusiveEndIndex) Returns the substring before firstdelimiterOfExclusiveBeginIndex
if it exists, otherwise return the inputstr
.static String
Strings.MoreStringUtil.substringBeforeOrElseItself
(String str, String delimiterOfExclusiveEndIndex) Returns the substring before firstdelimiterOfExclusiveBeginIndex
if it exists, otherwise return the inputstr
.static String
Strings.MoreStringUtil.substringOrElse
(String str, char delimiterOfInclusiveBeginIndex, int exclusiveEndIndex, String defaultStr) static String
Strings.MoreStringUtil.substringOrElse
(String str, char delimiterOfInclusiveBeginIndex, String defaultStr) ReturnsdefaultStr
ifN.isNullOrEmpty(str) || str.indexOf(delimiterOfInclusiveBeginIndex) < 0
, otherwise anOptional
with String value:str.substring(str.indexOf(delimiterOfInclusiveBeginIndex))
is returned.static String
Strings.MoreStringUtil.substringOrElse
(String str, int inclusiveBeginIndex, char delimiterOfExclusiveEndIndex, String defaultStr) static String
Strings.MoreStringUtil.substringOrElse
(String str, int inclusiveBeginIndex, int exclusiveEndIndex, String defaultStr) ReturnsdefaultStr
ifinclusiveBeginIndex < 0 ||exclusiveEndIndex <= 0 || inclusiveBeginIndex > exclusiveEndIndex
, otherwise anOptional
with String value:str.substring(exclusiveBeginIndex, exclusiveEndIndex)
is returned.static String
Strings.MoreStringUtil.substringOrElse
(String str, int inclusiveBeginIndex, String defaultStr) ReturnsdefaultStr
ifinclusiveBeginIndex < 0
, otherwise anOptional
with String value:str.substring(inclusiveBeginIndex)
is returned.static String
Strings.MoreStringUtil.substringOrElse
(String str, int inclusiveBeginIndex, String delimiterOfExclusiveEndIndex, String defaultStr) static String
Strings.MoreStringUtil.substringOrElse
(String str, int inclusiveBeginIndex, IntUnaryOperator funcOfExclusiveEndIndex, String defaultStr) static String
Strings.MoreStringUtil.substringOrElse
(String str, String delimiterOfInclusiveBeginIndex, int exclusiveEndIndex, String defaultStr) static String
Strings.MoreStringUtil.substringOrElse
(String str, String delimiterOfInclusiveBeginIndex, String defaultStr) ReturnsdefaultStr
ifN.isNullOrEmpty(str) || str.indexOf(delimiterOfInclusiveBeginIndex) < 0
, otherwise anOptional
with String value:str.substring(str.indexOf(delimiterOfInclusiveBeginIndex))
is returned.static String
Strings.MoreStringUtil.substringOrElse
(String str, IntUnaryOperator funcOfInclusiveBeginIndex, int exclusiveEndIndex, String defaultStr) static String
Strings.MoreStringUtil.substringOrElseItself
(String str, char delimiterOfInclusiveBeginIndex) Returns the inputstr
ifN.isNullOrEmpty(str) || str.indexOf(delimiterOfInclusiveBeginIndex) < 0
, otherwise anOptional
with String value:str.substring(str.indexOf(delimiterOfInclusiveBeginIndex))
is returned.static String
Strings.MoreStringUtil.substringOrElseItself
(String str, char delimiterOfInclusiveBeginIndex, int exclusiveEndIndex) static String
Strings.MoreStringUtil.substringOrElseItself
(String str, int inclusiveBeginIndex) Returns the inputstr
ifinclusiveBeginIndex < 0
, otherwise anOptional
with String value:str.substring(inclusiveBeginIndex)
is returned.static String
Strings.MoreStringUtil.substringOrElseItself
(String str, int inclusiveBeginIndex, char delimiterOfExclusiveEndIndex) static String
Strings.MoreStringUtil.substringOrElseItself
(String str, int inclusiveBeginIndex, int exclusiveEndIndex) Returns the inputstr
ifinclusiveBeginIndex < 0 ||exclusiveEndIndex <= 0 || inclusiveBeginIndex > exclusiveEndIndex
, otherwise anOptional
with String value:str.substring(exclusiveBeginIndex, exclusiveEndIndex)
is returned.static String
Strings.MoreStringUtil.substringOrElseItself
(String str, int inclusiveBeginIndex, String delimiterOfExclusiveEndIndex) static String
Strings.MoreStringUtil.substringOrElseItself
(String str, int inclusiveBeginIndex, IntUnaryOperator funcOfExclusiveEndIndex) static String
Strings.MoreStringUtil.substringOrElseItself
(String str, String delimiterOfInclusiveBeginIndex) Returns the inputstr
ifN.isNullOrEmpty(str) || str.indexOf(delimiterOfInclusiveBeginIndex) < 0
, otherwise anOptional
with String value:str.substring(str.indexOf(delimiterOfInclusiveBeginIndex))
is returned.static String
Strings.MoreStringUtil.substringOrElseItself
(String str, String delimiterOfInclusiveBeginIndex, int exclusiveEndIndex) static String
Strings.MoreStringUtil.substringOrElseItself
(String str, IntUnaryOperator funcOfInclusiveBeginIndex, int exclusiveEndIndex) static <T> BiFunction<T,
T, MergeResult> Fn.switchOnNext()
Returns a statefulBiFunction
.static <T> BiFunction<T,
T, MergeResult> MergeResult.switchOnNext()
Deprecated.UseFn.switchOnNext()
insteadExceptionalStream.timed()
static <T> Predicate<T>
Fn.timeLimit
(long timeInMillis) Returns a statefulPredicate
.static <T> Predicate<T>
Returns a statefulPredicate
.static <T> List<T>
Tuple.toList
(Tuple.Tuple1<? extends T> tp) static <T> List<T>
Tuple.toList
(Tuple.Tuple2<? extends T, ? extends T> tp) static <T> List<T>
Tuple.toList
(Tuple.Tuple3<? extends T, ? extends T, ? extends T> tp) static <T> List<T>
Tuple.toList
(Tuple.Tuple4<? extends T, ? extends T, ? extends T, ? extends T> tp) static <T> List<T>
Tuple.toList
(Tuple.Tuple5<? extends T, ? extends T, ? extends T, ? extends T, ? extends T> tp) static <T> List<T>
Tuple.toList
(Tuple.Tuple6<? extends T, ? extends T, ? extends T, ? extends T, ? extends T, ? extends T> tp) static <T> List<T>
Tuple.toList
(Tuple.Tuple7<? extends T, ? extends T, ? extends T, ? extends T, ? extends T, ? extends T, ? extends T> tp) static <T> List<T>
Tuple.toList
(Tuple.Tuple8<? extends T, ? extends T, ? extends T, ? extends T, ? extends T, ? extends T, ? extends T, ? extends T> tp) static <T> List<T>
Tuple.toList
(Tuple.Tuple9<? extends T, ? extends T, ? extends T, ? extends T, ? extends T, ? extends T, ? extends T, ? extends T, ? extends T> tp) static RuntimeException
static RuntimeException
Converts the specifiedThrowable
to aRuntimeException
if it's a checkedexception
or anError
, otherwise returns itself.static RuntimeException
N.toRuntimeException
(Throwable e, boolean throwIfItIsError) Converts the specifiedThrowable
to aRuntimeException
if it's a checkedexception
, or throw it if it's anError
.abstract L
PrimitiveList.trimToSize()
Trim to size and return {@code this) list. There is no new list instance created. @return this List with trailing unused space removed.static <R> R
N.tryOrDefaultIfExceptionOccurred
(Callable<R> cmd, Supplier<R> supplierForDefaultIfExceptionOccurred) Returns the value returned byaction
or{@code supplierForDefaultIfExceptionOccurred}
if exception happens.static <R> R
N.tryOrDefaultIfExceptionOccurred
(Callable<R> cmd, R defaultIfExceptionOccurred) Returns the value returned byaction
ordefaultIfExceptionOccurred
if exception happens.static <T,
R, E extends Exception>
RN.tryOrDefaultIfExceptionOccurred
(T init, Throwables.Function<? super T, ? extends R, E> func, Supplier<R> supplierForDefaultIfExceptionOccurred) Returns the value returned byaction
ordefaultIfExceptionOccurred
if exception happens.static <T,
R, E extends Exception>
RN.tryOrDefaultIfExceptionOccurred
(T init, Throwables.Function<? super T, ? extends R, E> func, R defaultIfExceptionOccurred) Returns the value returned byaction
ordefaultIfExceptionOccurred
if exception happens.static <R> u.Nullable<R>
N.tryOrEmptyIfExceptionOccurred
(Callable<R> cmd) Returns aNullable
with the value returned byaction
or an emptyNullable
if exception happens.static <T,
R, E extends Exception>
u.Nullable<R>N.tryOrEmptyIfExceptionOccurred
(T init, Throwables.Function<? super T, ? extends R, E> func) Returns aNullable
with the value returned byfunc.apply(init)
or an emptyNullable
if exception happens.default BiConsumer<T,
U> Throwables.BiConsumer.unchecked()
default BiFunction<T,
U, R> Throwables.BiFunction.unchecked()
default BiPredicate<T,
U> Throwables.BiPredicate.unchecked()
Throwables.Callable.unchecked()
Throwables.Consumer.unchecked()
Throwables.Function.unchecked()
Throwables.Predicate.unchecked()
default Runnable
Throwables.Runnable.unchecked()
Throwables.Supplier.unchecked()
Multimap.unwrap()
Returns a view of this multimap as aMap
from each distinct key to the nonempty collection of that key's associated values.static <T,
A, B, C> TriIterator<A, B, C> Iterators.unzipp
(Iterable<? extends T> c, BiConsumer<? super T, Triple<A, B, C>> unzip) static <T,
A, B, C> TriIterator<A, B, C> Iterators.unzipp
(Iterator<? extends T> iter, BiConsumer<? super T, Triple<A, B, C>> unzip) -
Uses of Beta in com.landawn.abacus.util.stream
Modifier and TypeMethodDescription<SS extends BaseStream>
SS<R> ContinuableFuture<R>
Stream.asyncCall
(Throwables.Function<? super Stream<T>, R, ? extends Exception> terminalAction) <R> ContinuableFuture<R>
Stream.asyncCall
(Throwables.Function<? super Stream<T>, R, ? extends Exception> terminalAction, Executor executor) Stream.asyncRun
(Throwables.Consumer<? super Stream<T>, ? extends Exception> terminalAction) Stream.asyncRun
(Throwables.Consumer<? super Stream<T>, ? extends Exception> terminalAction, Executor executor) <E extends Exception>
ExceptionalStream<T,E> Stream.checked()
<E extends Exception>
ExceptionalStream<T,E> Stream.collapse
(TriPredicate<? super T, ? super T, ? super T> collapsible) Stream.collapse
(TriPredicate<? super T, ? super T, ? super T> collapsible, BiFunction<? super T, ? super T, T> mergeFunction) Merge series of adjacent elements which satisfy the given predicate using the merger function and return a new stream.abstract <C extends Collection<T>>
Stream<C>Stream.collapse
(TriPredicate<? super T, ? super T, ? super T> collapsible, Supplier<? extends C> supplier) abstract <R> Stream<R>
Stream.collapse
(TriPredicate<? super T, ? super T, ? super T> collapsible, Supplier<R> supplier, BiConsumer<? super R, ? super T> accumulator) abstract <R,
A> Stream<R> Stream.collapse
(TriPredicate<? super T, ? super T, ? super T> collapsible, Collector<? super T, A, R> collector) Merge series of adjacent elements which satisfy the given predicate using the merger function and return a new stream.abstract <U> Stream<U>
Stream.collapse
(TriPredicate<? super T, ? super T, ? super T> collapsible, U init, BiFunction<U, ? super T, U> op) static ByteStream
static CharStream
static DoubleStream
static FloatStream
static IntStream
static LongStream
static ShortStream
static <T> Stream<T>
Stream.concatIterables
(Collection<? extends Iterable<? extends T>> c) static ByteStream
ByteStream.concatIterators
(Collection<? extends ByteIterator> c) static CharStream
CharStream.concatIterators
(Collection<? extends CharIterator> c) static DoubleStream
DoubleStream.concatIterators
(Collection<? extends DoubleIterator> c) static FloatStream
FloatStream.concatIterators
(Collection<? extends FloatIterator> c) static IntStream
IntStream.concatIterators
(Collection<? extends IntIterator> c) static LongStream
LongStream.concatIterators
(Collection<? extends LongIterator> c) static ShortStream
ShortStream.concatIterators
(Collection<? extends ShortIterator> c) static <T> Stream<T>
Stream.concatIterators
(Collection<? extends Iterator<? extends T>> c) Remove the elements until the given predicate returns false.BaseStream.elementAt
(long position) Returns a stream consisting of the elements of this stream that match the given predicate.Stream.filterE
(Throwables.Predicate<? super T, ? extends Exception> predicate) abstract <E extends Exception,
E2 extends Exception>
u.Optional<T>Stream.findFirstOrLast
(Throwables.Predicate<? super T, E> predicateForFirst, Throwables.Predicate<? super T, E2> predicateForLast) abstract <U,
E extends Exception, E2 extends Exception>
u.Optional<T>Stream.findFirstOrLast
(Function<? super T, U> preFunc, Throwables.BiPredicate<? super T, ? super U, E> predicateForFirst, Throwables.BiPredicate<? super T, ? super U, E2> predicateForLast)
This method only runs sequentially, even in parallel stream.abstract <U,
E extends Exception, E2 extends Exception>
u.Optional<T>Stream.findFirstOrLast
(U init, Throwables.BiPredicate<? super T, ? super U, E> predicateForFirst, Throwables.BiPredicate<? super T, ? super U, E2> predicateForLast)
This method only runs sequentially, even in parallel stream.<R> Stream<R>
Stream.flatmapE
(Throwables.Function<? super T, ? extends Collection<? extends R>, ? extends Exception> mapper) <R> Stream<R>
Stream.flatMapE
(Throwables.Function<? super T, ? extends Stream<? extends R>, ? extends Exception> mapper) <R> Stream<R>
Stream.flatMapIfNotNull
(Function<? super T, ? extends Collection<? extends R>> mapper) <U,
R> Stream<R> Stream.flatMapIfNotNull
(Function<? super T, ? extends Collection<? extends U>> mapper, Function<? super U, ? extends Collection<? extends R>> mapper2) <KK> EntryStream<KK,
V> EntryStream.flatmapKeyToDisposableEntry
(Function<? super K, ? extends Collection<? extends KK>> keyMapper) Deprecated.<KK> EntryStream<KK,
V> EntryStream.flatMapKeyToDisposableEntry
(Function<? super K, ? extends Stream<? extends KK>> keyMapper) Deprecated.<VV> EntryStream<K,
VV> EntryStream.flatmapValueToDisposableEntry
(Function<? super V, ? extends Collection<? extends VV>> valueMapper) Deprecated.<VV> EntryStream<K,
VV> EntryStream.flatMapValueToDisposableEntry
(Function<? super V, ? extends Stream<? extends VV>> valueMapper) Deprecated.abstract <E extends Exception>
voidStream.forEachUntil
(MutableBoolean flagToBreak, Throwables.Consumer<? super T, E> action) Iterate and executeaction
untilflagToBreak
is set true.abstract <E extends Exception>
voidStream.forEachUntil
(Throwables.BiConsumer<? super T, MutableBoolean, E> action) Iterate and executeaction
until the flag is set true.static DoubleStream
DoubleStream.from
(float... a) Deprecated.static DoubleStream
DoubleStream.from
(float[] a, int fromIndex, int toIndex) Deprecated.static IntStream
IntStream.from
(byte... a) Deprecated.static IntStream
IntStream.from
(byte[] a, int fromIndex, int toIndex) Deprecated.static IntStream
IntStream.from
(char... a) Deprecated.static IntStream
IntStream.from
(char[] a, int fromIndex, int toIndex) Deprecated.static IntStream
IntStream.from
(short... a) Deprecated.static IntStream
IntStream.from
(short[] a, int fromIndex, int toIndex) Deprecated.EntryStream.inversedToDisposableEntry()
Deprecated.Stream.last
(int n) A queue with size up ton
will be maintained to filter out the lastn
elements.<R> Stream<R>
Stream.mapE
(Throwables.Function<? super T, ? extends R, ? extends Exception> mapper) <KK,
VV> EntryStream<KK, VV> abstract <R> Stream<R>
Stream.mapMulti
(BiConsumer<? super T, ? super Consumer<R>> mapper) abstract DoubleStream
Stream.mapMultiToDouble
(BiConsumer<? super T, ? super DoubleConsumer> mapper) abstract IntStream
Stream.mapMultiToInt
(BiConsumer<? super T, ? super IntConsumer> mapper) abstract LongStream
Stream.mapMultiToLong
(BiConsumer<? super T, ? super LongConsumer> mapper) abstract ByteStream
ByteStream.mapPartial
(ByteFunction<u.OptionalByte> mapper) Note: copied from StreamEx: https://github.com/amaembo/streamexabstract CharStream
CharStream.mapPartial
(CharFunction<u.OptionalChar> mapper) Note: copied from StreamEx: https://github.com/amaembo/streamexabstract DoubleStream
DoubleStream.mapPartial
(DoubleFunction<u.OptionalDouble> mapper) Note: copied from StreamEx: https://github.com/amaembo/streamexabstract FloatStream
FloatStream.mapPartial
(FloatFunction<u.OptionalFloat> mapper) Note: copied from StreamEx: https://github.com/amaembo/streamexabstract IntStream
IntStream.mapPartial
(IntFunction<u.OptionalInt> mapper) Note: copied from StreamEx: https://github.com/amaembo/streamexabstract LongStream
LongStream.mapPartial
(LongFunction<u.OptionalLong> mapper) Note: copied from StreamEx: https://github.com/amaembo/streamexabstract ShortStream
ShortStream.mapPartial
(ShortFunction<u.OptionalShort> mapper) Note: copied from StreamEx: https://github.com/amaembo/streamexabstract <R> Stream<R>
Stream.mapPartial
(Function<? super T, u.Optional<? extends R>> mapper) Note: copied from StreamEx: https://github.com/amaembo/streamexabstract DoubleStream
DoubleStream.mapPartialJdk
(DoubleFunction<OptionalDouble> mapper) Note: copied from StreamEx: https://github.com/amaembo/streamexabstract IntStream
IntStream.mapPartialJdk
(IntFunction<OptionalInt> mapper) Note: copied from StreamEx: https://github.com/amaembo/streamexabstract LongStream
LongStream.mapPartialJdk
(LongFunction<OptionalLong> mapper) Note: copied from StreamEx: https://github.com/amaembo/streamexabstract <R> Stream<R>
Stream.mapPartialJdk
(Function<? super T, Optional<? extends R>> mapper) Note: copied from StreamEx: https://github.com/amaembo/streamexabstract DoubleStream
Stream.mapPartialToDouble
(Function<? super T, u.OptionalDouble> mapper) Note: copied from StreamEx: https://github.com/amaembo/streamexabstract DoubleStream
Stream.mapPartialToDoubleJdk
(Function<? super T, OptionalDouble> mapper) Note: copied from StreamEx: https://github.com/amaembo/streamexabstract IntStream
Stream.mapPartialToInt
(Function<? super T, u.OptionalInt> mapper) Note: copied from StreamEx: https://github.com/amaembo/streamexabstract IntStream
Stream.mapPartialToIntJdk
(Function<? super T, OptionalInt> mapper) Note: copied from StreamEx: https://github.com/amaembo/streamexabstract LongStream
Stream.mapPartialToLong
(Function<? super T, u.OptionalLong> mapper) Note: copied from StreamEx: https://github.com/amaembo/streamexabstract LongStream
Stream.mapPartialToLongJdk
(Function<? super T, OptionalLong> mapper) Note: copied from StreamEx: https://github.com/amaembo/streamex<KK,
VV> EntryStream<KK, VV> EntryStream.mapToDisposableEntry
(BiFunction<? super K, ? super V, ? extends KK> keyMapper, BiFunction<? super K, ? super V, ? extends VV> valueMapper) Deprecated.<KK,
VV> EntryStream<KK, VV> EntryStream.mapToDisposableEntry
(Function<? super Map.Entry<K, V>, ? extends KK> keyMapper, Function<? super Map.Entry<K, V>, ? extends VV> valueMapper) Deprecated.<K,
V> Stream<NoCachingNoUpdating.DisposableEntry<K, V>> Stream.mapToDisposableEntry
(Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends V> valueMapper) Deprecated.static <T> Stream<T>
Stream.observe
(BlockingQueue<T> queue, Duration duration) Sample code:static <T> Stream<T>
Stream.observe
(BlockingQueue<T> queue, BooleanSupplier hasMore, long maxWaitIntervalInMillis) Sample code:Stream.onEachE
(Throwables.Consumer<? super T, ? extends Exception> action) BaseStream.parallel
(BaseStream.ParallelSettings ps) stream.parallel(parallelSettings).map(f).filter(p)...; // Replace above line of code with "sps" if only "f" need to be parallelized.static <T> Stream<T>
Stream.parallelConcatIterables
(Collection<? extends Iterable<? extends T>> c) static <T> Stream<T>
Stream.parallelConcatIterables
(Collection<? extends Iterable<? extends T>> c, int readThreadNum) static <T> Stream<T>
Stream.parallelConcatIterables
(Collection<? extends Iterable<? extends T>> c, int readThreadNum, int bufferSize) Returns a Stream with elements from a temporary queue which is filled by reading the elements from the specified iterators in parallel.static <T,
R> Stream<R> Stream.parallelZipIterables
(Collection<? extends Iterable<? extends T>> collections, Function<? super List<? extends T>, ? extends R> zipFunction) A new thread will be started for eachIterator/Collection/Stream
to read the elements to queue for thezipFunction
.static <T,
R> Stream<R> Stream.parallelZipIterables
(Collection<? extends Iterable<? extends T>> collections, Function<? super List<? extends T>, ? extends R> zipFunction, int bufferSize) A new thread will be started for eachIterator/Collection/Stream
to read the elements to queue for thezipFunction
.static <T,
R> Stream<R> Stream.parallelZipIterables
(Collection<? extends Iterable<? extends T>> collections, List<? extends T> valuesForNone, Function<? super List<? extends T>, ? extends R> zipFunction) A new thread will be started for eachIterator/Collection/Stream
to read the elements to queue for thezipFunction
.static <T,
R> Stream<R> Stream.parallelZipIterables
(Collection<? extends Iterable<? extends T>> collections, List<? extends T> valuesForNone, Function<? super List<? extends T>, ? extends R> zipFunction, int bufferSize) A new thread will be started for eachIterator/Collection/Stream
to read the elements to queue for thezipFunction
.void
BaseStream.println()
<SS extends BaseStream>
SSTemporarily switch the stream to sequence stream for operationops
and then switch back to parallel stream with samemaxThreadNum/splitor/asyncExecutor
.abstract <E extends Exception>
u.Optional<T>Stream.reduceUntil
(Throwables.BinaryOperator<T, E> accumulator, Throwables.Predicate<? super T, E> conditionToBreak) Stream.reduceUntil
(T identity, Throwables.BinaryOperator<T, E> accumulator, Throwables.Predicate<? super T, E> conditionToBreak) abstract <U,
E extends Exception>
UStream.reduceUntil
(U identity, Throwables.BiFunction<U, ? super T, U, E> accumulator, Throwables.BinaryOperator<U, E> combiner, Throwables.Predicate<? super U, E> conditionToBreak) <R> Stream<R>
Temporarily switch the stream to Jdk parallel stream for operationops
and then switch back to sequence stream.<SS extends BaseStream>
SSTemporarily switch the stream to parallel stream for operationops
and then switch back to sequence stream.<SS extends BaseStream>
SSTemporarily switch the stream to parallel stream for operationops
and then switch back to sequence stream.<R> Stream<R>
Stream.sps
(int maxThreadNum, int bufferSize, Function<? super Stream<T>, ? extends Stream<? extends R>> op) Temporarily switch the stream to parallel stream for operationop
and then switch back to sequence stream.Temporarily switch the stream to parallel stream for operationfilter
and then switch back to sequence stream.Temporarily switch the stream to parallel stream for operationfilter
and then switch back to sequence stream.Temporarily switch the stream to parallel stream for operationfilter
and then switch back to sequence stream.Stream.spsFilterE
(int maxThreadNum, Throwables.Predicate<? super T, ? extends Exception> predicate) Temporarily switch the stream to parallel stream for operationfilter
and then switch back to sequence stream.Stream.spsFilterE
(Throwables.Predicate<? super T, ? extends Exception> predicate) Temporarily switch the stream to parallel stream for operationfilter
and then switch back to sequence stream.<R> Stream<R>
Stream.spsFlatmap
(int maxThreadNum, int bufferSize, Function<? super T, ? extends Collection<? extends R>> mapper) Temporarily switch the stream to parallel stream for operationflatMap
and then switch back to sequence stream.<R> Stream<R>
Stream.spsFlatmap
(int maxThreadNum, Function<? super T, ? extends Collection<? extends R>> mapper) Temporarily switch the stream to parallel stream for operationflatMap
and then switch back to sequence stream.<R> Stream<R>
Stream.spsFlatmap
(Function<? super T, ? extends Collection<? extends R>> mapper) Temporarily switch the stream to parallel stream for operationflatMap
and then switch back to sequence stream.<R> Stream<R>
Stream.spsFlatMap
(int maxThreadNum, int bufferSize, Function<? super T, ? extends Stream<? extends R>> mapper) Temporarily switch the stream to parallel stream for operationflatMap
and then switch back to sequence stream.<R> Stream<R>
Stream.spsFlatMap
(int maxThreadNum, Function<? super T, ? extends Stream<? extends R>> mapper) Temporarily switch the stream to parallel stream for operationflatMap
and then switch back to sequence stream.<R> Stream<R>
Stream.spsFlatMap
(Function<? super T, ? extends Stream<? extends R>> mapper) Temporarily switch the stream to parallel stream for operationflatMap
and then switch back to sequence stream.<R> Stream<R>
Stream.spsFlatmapE
(int maxThreadNum, Throwables.Function<? super T, ? extends Collection<? extends R>, ? extends Exception> mapper) Temporarily switch the stream to parallel stream for operationflatMap
and then switch back to sequence stream.<R> Stream<R>
Stream.spsFlatmapE
(Throwables.Function<? super T, ? extends Collection<? extends R>, ? extends Exception> mapper) Temporarily switch the stream to parallel stream for operationflatMap
and then switch back to sequence stream.<R> Stream<R>
Stream.spsFlatMapE
(int maxThreadNum, Throwables.Function<? super T, ? extends Stream<? extends R>, ? extends Exception> mapper) Temporarily switch the stream to parallel stream for operationflatMap
and then switch back to sequence stream.<R> Stream<R>
Stream.spsFlatMapE
(Throwables.Function<? super T, ? extends Stream<? extends R>, ? extends Exception> mapper) Temporarily switch the stream to parallel stream for operationflatMap
and then switch back to sequence stream.<R> Stream<R>
Temporarily switch the stream to parallel stream for operationmap
and then switch back to sequence stream.<R> Stream<R>
Temporarily switch the stream to parallel stream for operationmap
and then switch back to sequence stream.<R> Stream<R>
Temporarily switch the stream to parallel stream for operationmap
and then switch back to sequence stream.<R> Stream<R>
Stream.spsMapE
(int maxThreadNum, Throwables.Function<? super T, ? extends R, ? extends Exception> mapper) Temporarily switch the stream to parallel stream for operationmap
and then switch back to sequence stream.<R> Stream<R>
Stream.spsMapE
(Throwables.Function<? super T, ? extends R, ? extends Exception> mapper) Temporarily switch the stream to parallel stream for operationmap
and then switch back to sequence stream.Temporarily switch the stream to parallel stream for operationonEach
and then switch back to sequence stream.Temporarily switch the stream to parallel stream for operationonEach
and then switch back to sequence stream.Temporarily switch the stream to parallel stream for operationonEach
and then switch back to sequence stream.Stream.spsOnEachE
(int maxThreadNum, Throwables.Consumer<? super T, ? extends Exception> action) Temporarily switch the stream to parallel stream for operationonEach
and then switch back to sequence stream.Stream.spsOnEachE
(Throwables.Consumer<? super T, ? extends Exception> action) Temporarily switch the stream to parallel stream for operationonEach
and then switch back to sequence stream.
toArray()