- of(Stream<T>) - Static method in class no.finn.lambdacompanion.ExtendedStream
-
- of(List<Either<L, R>>) - Static method in class no.finn.lambdacompanion.Pair
-
Given a list of Either[L,R] that can be a mixed collection of Left and Right, groups left side values into one list and
right side values into another list and return both lists together as a Pair (makes a union of the values contained within a
collection of disjoint unions)
- of(T) - Static method in class no.finn.lambdacompanion.StreamableOptional
-
- of(ThrowingFunction<V, ? extends U, ? extends Exception>, V) - Static method in class no.finn.lambdacompanion.Try
-
Starting point to the Try structure.
- of(ThrowingBiFunction<V, W, ? extends U, ? extends Exception>, V, W) - Static method in class no.finn.lambdacompanion.Try
-
Starting point to the Try structure.
- of(ThrowingSupplier<U, ? extends Exception>) - Static method in class no.finn.lambdacompanion.Try
-
Starting point to the Try structure.
- ofBlankable(String) - Static method in class no.finn.lambdacompanion.Optionals
-
Convenience method to build and Optional out of a String that can be null or blank
- ofNullable(T) - Static method in class no.finn.lambdacompanion.StreamableOptional
-
- ofOptional(Optional<T>) - Static method in class no.finn.lambdacompanion.StreamableOptional
-
Builds a StreamableOptional around the given
Optional
- onClose(Runnable) - Method in class no.finn.lambdacompanion.ExtendedStream
-
- Optionals - Class in no.finn.lambdacompanion
-
- orElse(L) - Method in class no.finn.lambdacompanion.Either.LeftProjection
-
- orElse(R) - Method in class no.finn.lambdacompanion.Either.RightProjection
-
- orElse(T) - Method in class no.finn.lambdacompanion.Failure
-
- orElse(T) - Method in class no.finn.lambdacompanion.StreamableOptional
-
- orElse(T) - Method in class no.finn.lambdacompanion.Success
-
- orElse(T) - Method in class no.finn.lambdacompanion.Try
-
Returns the value of the Success, or a default value of the same type if this is a Failure.
- orElseGet(Supplier<L>) - Method in class no.finn.lambdacompanion.Either.LeftProjection
-
- orElseGet(Supplier<R>) - Method in class no.finn.lambdacompanion.Either.RightProjection
-
- orElseGet(Supplier<? extends T>) - Method in class no.finn.lambdacompanion.Failure
-
- orElseGet(Supplier<? extends T>) - Method in class no.finn.lambdacompanion.StreamableOptional
-
- orElseGet(Supplier<? extends T>) - Method in class no.finn.lambdacompanion.Success
-
- orElseGet(Supplier<? extends T>) - Method in class no.finn.lambdacompanion.Try
-
Returns the value of the Success, or lazily falls back to a supplied value of the same type
- orElseRethrow() - Method in class no.finn.lambdacompanion.Failure
-
- orElseRethrow() - Method in class no.finn.lambdacompanion.Success
-
- orElseRethrow() - Method in class no.finn.lambdacompanion.Try
-
Escapes the Try and enters a regular try-catch flow by rethowing the caught exception when a Failure
- orElseThrow(Function<R, X>) - Method in class no.finn.lambdacompanion.Either.LeftProjection
-
- orElseThrow(Function<L, X>) - Method in class no.finn.lambdacompanion.Either.RightProjection
-
- orElseThrow(Function<X, Y>) - Method in class no.finn.lambdacompanion.Failure
-
- orElseThrow(Supplier<? extends X>) - Method in class no.finn.lambdacompanion.StreamableOptional
-
- orElseThrow(Function<X, Y>) - Method in class no.finn.lambdacompanion.Success
-
- orElseThrow(Function<X, Y>) - Method in class no.finn.lambdacompanion.Try
-
Escapes the Try and enters a regular try-catch flow