| Package | Description |
|---|---|
| com.landawn.abacus.util | |
| com.landawn.abacus.util.function |
| Modifier and Type | Class and Description |
|---|---|
class |
LazyInitializer<T> |
static class |
Throwables.LazyInitializer<T,E extends Throwable> |
| Modifier and Type | Method and Description |
|---|---|
<R> ExceptionalStream<R,E> |
ExceptionalStream.collapse(Throwables.BiPredicate<? super T,? super T,? extends E> collapsible,
Throwables.Supplier<R,E> supplier,
Throwables.BiConsumer<? super R,? super T,? extends E> accumulator) |
<R,E2 extends Exception,E3 extends Exception> |
ExceptionalStream.collect(Throwables.Supplier<R,? extends E2> supplier,
Throwables.BiConsumer<? super R,? super T,? extends E3> accumulator) |
<R,RR,E2 extends Exception,E3 extends Exception,E4 extends Exception> |
ExceptionalStream.collect(Throwables.Supplier<R,? extends E2> supplier,
Throwables.BiConsumer<? super R,? super T,? extends E3> accumulator,
Throwables.Function<? super R,? extends RR,? extends E4> finisher) |
static <T,E extends Exception> |
ExceptionalStream.from(Throwables.Supplier<ExceptionalStream<? extends T,? extends E>,? extends E> supplier)
Lazy evaluation.
|
static <T> ExceptionalStream<T,RuntimeException> |
ExceptionalStream.Seq.from(Throwables.Supplier<ExceptionalStream<? extends T,? extends RuntimeException>,RuntimeException> supplier) |
static <T,E extends Exception> |
ExceptionalStream.generate(Throwables.Supplier<T,E> supplier) |
static <T> ExceptionalStream<T,RuntimeException> |
ExceptionalStream.Seq.generate(Throwables.Supplier<T,RuntimeException> supplier) |
static <R,E extends Exception> |
N.ifOrEmpty(boolean b,
Throwables.Supplier<R,E> supplier)
Returns a
Nullable with value got from the specified supplier if b is true,
otherwise returns an empty Nullable if b is false. |
static <T,E extends Exception> |
ExceptionalStream.iterate(Throwables.BooleanSupplier<? extends E> hasNext,
Throwables.Supplier<? extends T,E> next) |
static <T> ExceptionalStream<T,RuntimeException> |
ExceptionalStream.Seq.iterate(Throwables.BooleanSupplier<? extends RuntimeException> hasNext,
Throwables.Supplier<? extends T,RuntimeException> next) |
static <T,E extends Exception> |
N.lazyInitialize(Throwables.Supplier<T,E> supplier) |
static <T,E extends Throwable> |
Fn.Fnn.memoize(Throwables.Supplier<T,E> supplier)
Returns a
Supplier which returns a single instance created by calling the specified supplier.get(). |
static <T,E extends Exception> |
ExceptionalStream.of(Throwables.Supplier<Collection<? extends T>,? extends E> supplier)
Lazy evaluation.
|
static <T> ExceptionalStream<T,RuntimeException> |
ExceptionalStream.Seq.of(Throwables.Supplier<Collection<? extends T>,RuntimeException> supplier) |
static <T,E extends Throwable> |
Throwables.LazyInitializer.of(Throwables.Supplier<T,E> supplier) |
<E extends Exception> |
u.Nullable.or(Throwables.Supplier<u.Nullable<? extends T>,E> supplier) |
<E extends Exception> |
u.Optional.or(Throwables.Supplier<u.Optional<? extends T>,E> supplier) |
<E extends Exception> |
u.OptionalBoolean.or(Throwables.Supplier<u.OptionalBoolean,E> supplier) |
<E extends Exception> |
u.OptionalByte.or(Throwables.Supplier<u.OptionalByte,E> supplier) |
<E extends Exception> |
u.OptionalChar.or(Throwables.Supplier<u.OptionalChar,E> supplier) |
<E extends Exception> |
u.OptionalDouble.or(Throwables.Supplier<u.OptionalDouble,E> supplier) |
<E extends Exception> |
u.OptionalFloat.or(Throwables.Supplier<u.OptionalFloat,E> supplier) |
<E extends Exception> |
u.OptionalInt.or(Throwables.Supplier<u.OptionalInt,E> supplier) |
<E extends Exception> |
u.OptionalLong.or(Throwables.Supplier<u.OptionalLong,E> supplier) |
<E extends Exception> |
u.OptionalShort.or(Throwables.Supplier<u.OptionalShort,E> supplier) |
<E extends Exception> |
u.Optional.orElseGet(Throwables.Supplier<? extends T,E> other)
Or else get.
|
<E extends Exception> |
u.Nullable.orElseGet(Throwables.Supplier<? extends T,E> other)
Or else get.
|
<E2 extends Throwable> |
Result.orElseGet(Throwables.Supplier<? extends T,E2> otherIfErrorOccurred)
Deprecated.
|
<E2 extends Throwable> |
Result.orElseGetIfFailure(Throwables.Supplier<? extends T,E2> otherIfErrorOccurred) |
<E extends Exception> |
u.Nullable.orElseGetIfNull(Throwables.Supplier<? extends T,E> other)
Or else get if null.
|
<E extends Exception> |
u.Nullable.orIfNull(Throwables.Supplier<u.Nullable<? extends T>,E> supplier)
Or if null.
|
static <T extends AutoCloseable> |
Try.with(Throwables.Supplier<T,? extends Exception> targetResourceSupplier) |
static <T extends AutoCloseable> |
Try.with(Throwables.Supplier<T,? extends Exception> targetResourceSupplier,
Runnable finalAction) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Supplier<T>
Refer to JDK API documentation at: https://docs.oracle.com/javase/8/docs/api/java/util/function/package-summary.html
|
Copyright © 2021. All rights reserved.