Skip navigation links
A C D E F G H I J L M N O P R S T U 

A

accept(T) - Method in interface no.finntech.lambdacompanion.ThrowingConsumer
 
allMatch(Predicate<? super T>) - Method in class no.finntech.lambdacompanion.ExtendedStream
 
anyMatch(Predicate<? super T>) - Method in class no.finntech.lambdacompanion.ExtendedStream
 
apply(T, R) - Method in interface no.finntech.lambdacompanion.ThrowingBiFunction
 
apply(T) - Method in interface no.finntech.lambdacompanion.ThrowingFunction
 

C

close() - Method in class no.finntech.lambdacompanion.ExtendedStream
 
collect(Supplier<R>, BiConsumer<R, ? super T>, BiConsumer<R, R>) - Method in class no.finntech.lambdacompanion.ExtendedStream
 
collect(Collector<? super T, A, R>) - Method in class no.finntech.lambdacompanion.ExtendedStream
 
count() - Method in class no.finntech.lambdacompanion.ExtendedStream
 

D

distinct() - Method in class no.finntech.lambdacompanion.ExtendedStream
 

E

Either<L,R> - Class in no.finntech.lambdacompanion
Represents a value of one of two possible types (a disjoint union.) Instances of Either are either an instance of Left or Right.
Either() - Constructor for class no.finntech.lambdacompanion.Either
 
Either.LeftProjection<L,R> - Class in no.finntech.lambdacompanion
Projects an Either into a Left.
Either.RightProjection<L,R> - Class in no.finntech.lambdacompanion
Projects an Either into a Right.
empty() - Static method in class no.finntech.lambdacompanion.StreamableOptional
 
entryToMap() - Static method in class no.finntech.lambdacompanion.Streams
 
equals(Object) - Method in class no.finntech.lambdacompanion.Either
Returns true if this and object are both either a Left or a Right, and both their containing values are equal as determined by their equal methods.
equals(Object) - Method in class no.finntech.lambdacompanion.Failure
 
equals(Object) - Method in class no.finntech.lambdacompanion.Pair
 
equals(Object) - Method in class no.finntech.lambdacompanion.StreamableOptional
 
equals(Object) - Method in class no.finntech.lambdacompanion.Success
 
ExtendedStream<T> - Class in no.finntech.lambdacompanion
ExtendedStream(Stream<T>) - Constructor for class no.finntech.lambdacompanion.ExtendedStream
 

F

Failure<T> - Class in no.finntech.lambdacompanion
 
Failure(Throwable) - Constructor for class no.finntech.lambdacompanion.Failure
 
failure(Throwable) - Static method in class no.finntech.lambdacompanion.Try
 
filter(Predicate<L>) - Method in class no.finntech.lambdacompanion.Either.LeftProjection
 
filter(Predicate<R>) - Method in class no.finntech.lambdacompanion.Either.RightProjection
 
filter(Predicate<? super T>) - Method in class no.finntech.lambdacompanion.ExtendedStream
 
filter(Optional<?>, Class<T>) - Static method in class no.finntech.lambdacompanion.Optionals
Convenience method to filter an optional based on its class and cast it at the same time
filter(Predicate<? super T>) - Method in class no.finntech.lambdacompanion.StreamableOptional
 
findAny() - Method in class no.finntech.lambdacompanion.ExtendedStream
 
findFirst() - Method in class no.finntech.lambdacompanion.ExtendedStream
 
findLast() - Method in class no.finntech.lambdacompanion.ExtendedStream
 
firstOf(Supplier<Optional<T>>...) - Static method in class no.finntech.lambdacompanion.Optionals
Out of a list of suppliers of optional values, returns the first one that is present without unnecessary evaluating the next suppliers.
flatMap(Function<? super T, ? extends Stream<? extends R>>) - Method in class no.finntech.lambdacompanion.ExtendedStream
 
flatMap(ThrowingFunction<? super T, ? extends Try<U>, ? extends Throwable>) - Method in class no.finntech.lambdacompanion.Failure
 
flatMap(Function<? super T, StreamableOptional<U>>) - Method in class no.finntech.lambdacompanion.StreamableOptional
 
flatMap(ThrowingFunction<? super T, ? extends Try<U>, ? extends Throwable>) - Method in class no.finntech.lambdacompanion.Success
 
flatMap(ThrowingFunction<? super T, ? extends Try<U>, ? extends Throwable>) - Method in class no.finntech.lambdacompanion.Try
Applies a function on two values.
flatMapToDouble(Function<? super T, ? extends DoubleStream>) - Method in class no.finntech.lambdacompanion.ExtendedStream
 
flatMapToInt(Function<? super T, ? extends IntStream>) - Method in class no.finntech.lambdacompanion.ExtendedStream
 
flatMapToLong(Function<? super T, ? extends LongStream>) - Method in class no.finntech.lambdacompanion.ExtendedStream
 
fold(Function<L, X>, Function<R, X>) - Method in class no.finntech.lambdacompanion.Either
Applies leftMapper if this is a Left or rightMapper if this is a Right.
foldLeft(BiFunction<A, B, B>, B, List<A>) - Static method in class no.finntech.lambdacompanion.Functions
 
foldRight(BiFunction<T, R, R>, R) - Method in class no.finntech.lambdacompanion.ExtendedStream
 
foldRight(BiFunction<A, B, B>, B, List<A>) - Static method in class no.finntech.lambdacompanion.Functions
 
forEach(Consumer<? super L>) - Method in class no.finntech.lambdacompanion.Either.LeftProjection
Executes the given side-effecting function if this is a Left
forEach(Consumer<? super R>) - Method in class no.finntech.lambdacompanion.Either.RightProjection
Executes the given side-effecting function if this is a Right
forEach(Consumer<? super T>) - Method in class no.finntech.lambdacompanion.ExtendedStream
 
forEach(ThrowingConsumer<? super T, ? extends Throwable>) - Method in class no.finntech.lambdacompanion.Failure
 
forEach(ThrowingConsumer<? super T, ? extends Throwable>) - Method in class no.finntech.lambdacompanion.Success
 
forEach(ThrowingConsumer<? super T, ? extends Throwable>) - Method in class no.finntech.lambdacompanion.Try
Accepts a consuming function and applies it to the value if it is a Success.
forEachOrdered(Consumer<? super T>) - Method in class no.finntech.lambdacompanion.ExtendedStream
 
Functions - Class in no.finntech.lambdacompanion
 

G

get() - Method in interface no.finntech.lambdacompanion.ThrowingSupplier
 
getLeft() - Method in class no.finntech.lambdacompanion.Pair
 
getRight() - Method in class no.finntech.lambdacompanion.Pair
 
getThrowable() - Method in class no.finntech.lambdacompanion.Failure
 

H

hashCode() - Method in class no.finntech.lambdacompanion.Either
 
hashCode() - Method in class no.finntech.lambdacompanion.Failure
 
hashCode() - Method in class no.finntech.lambdacompanion.Pair
 
hashCode() - Method in class no.finntech.lambdacompanion.StreamableOptional
 
hashCode() - Method in class no.finntech.lambdacompanion.Success
 
head(List<A>) - Static method in class no.finntech.lambdacompanion.Functions
 

I

ifPresent(Consumer<? super T>) - Method in class no.finntech.lambdacompanion.StreamableOptional
 
isLeft() - Method in class no.finntech.lambdacompanion.Either
 
isParallel() - Method in class no.finntech.lambdacompanion.ExtendedStream
 
isRight() - Method in class no.finntech.lambdacompanion.Either
 
iterator() - Method in class no.finntech.lambdacompanion.ExtendedStream
 

J

joinLeft(Function<L, Either<X, R>>) - Method in class no.finntech.lambdacompanion.Either
Joins an Either through Left.
joinRight(Function<R, Either<L, X>>) - Method in class no.finntech.lambdacompanion.Either
Joins an Either through Right.

L

left() - Method in class no.finntech.lambdacompanion.Either
 
left(L) - Static method in class no.finntech.lambdacompanion.Either
 
limit(long) - Method in class no.finntech.lambdacompanion.ExtendedStream
 

M

map(Function<L, X>) - Method in class no.finntech.lambdacompanion.Either.LeftProjection
The given function is applied if this is a Left.
map(Function<R, X>) - Method in class no.finntech.lambdacompanion.Either.RightProjection
The given function is applied if this is a Right.
map(Function<? super T, ? extends R>) - Method in class no.finntech.lambdacompanion.ExtendedStream
 
map(ThrowingFunction<? super T, ? extends U, ? extends Throwable>) - Method in class no.finntech.lambdacompanion.Failure
 
map(Function<? super T, ? extends U>) - Method in class no.finntech.lambdacompanion.StreamableOptional
 
map(ThrowingFunction<? super T, ? extends U, ? extends Throwable>) - Method in class no.finntech.lambdacompanion.Success
 
map(ThrowingFunction<? super T, ? extends U, ? extends Throwable>) - Method in class no.finntech.lambdacompanion.Try
Applies a function on a value of type Success.
mapToDouble(ToDoubleFunction<? super T>) - Method in class no.finntech.lambdacompanion.ExtendedStream
 
mapToInt(ToIntFunction<? super T>) - Method in class no.finntech.lambdacompanion.ExtendedStream
 
mapToLong(ToLongFunction<? super T>) - Method in class no.finntech.lambdacompanion.ExtendedStream
 
max(Comparator<? super T>) - Method in class no.finntech.lambdacompanion.ExtendedStream
 
min(Comparator<? super T>) - Method in class no.finntech.lambdacompanion.ExtendedStream
 

N

no.finntech.lambdacompanion - package no.finntech.lambdacompanion
 
noneMatch(Predicate<? super T>) - Method in class no.finntech.lambdacompanion.ExtendedStream
 

O

of(Stream<T>) - Static method in class no.finntech.lambdacompanion.ExtendedStream
 
of(List<Either<L, R>>) - Static method in class no.finntech.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.finntech.lambdacompanion.StreamableOptional
 
of(ThrowingFunction<V, ? extends U, ? extends Throwable>, V) - Static method in class no.finntech.lambdacompanion.Try
Starting point to the Try structure.
of(ThrowingBiFunction<V, W, ? extends U, ? extends Throwable>, V, W) - Static method in class no.finntech.lambdacompanion.Try
Starting point to the Try structure.
of(ThrowingSupplier<U, ? extends Throwable>) - Static method in class no.finntech.lambdacompanion.Try
Starting point to the Try structure.
ofBlankable(String) - Static method in class no.finntech.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.finntech.lambdacompanion.StreamableOptional
 
ofOptional(Optional<T>) - Static method in class no.finntech.lambdacompanion.StreamableOptional
Builds a StreamableOptional around the given Optional
onClose(Runnable) - Method in class no.finntech.lambdacompanion.ExtendedStream
 
Optionals - Class in no.finntech.lambdacompanion
 
orElse(L) - Method in class no.finntech.lambdacompanion.Either.LeftProjection
 
orElse(R) - Method in class no.finntech.lambdacompanion.Either.RightProjection
 
orElse(T) - Method in class no.finntech.lambdacompanion.Failure
 
orElse(T) - Method in class no.finntech.lambdacompanion.StreamableOptional
 
orElse(T) - Method in class no.finntech.lambdacompanion.Success
 
orElse(T) - Method in class no.finntech.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.finntech.lambdacompanion.Either.LeftProjection
 
orElseGet(Supplier<R>) - Method in class no.finntech.lambdacompanion.Either.RightProjection
 
orElseGet(Supplier<? extends T>) - Method in class no.finntech.lambdacompanion.Failure
 
orElseGet(Supplier<? extends T>) - Method in class no.finntech.lambdacompanion.StreamableOptional
 
orElseGet(Supplier<? extends T>) - Method in class no.finntech.lambdacompanion.Success
 
orElseGet(Supplier<? extends T>) - Method in class no.finntech.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.finntech.lambdacompanion.Failure
 
orElseRethrow() - Method in class no.finntech.lambdacompanion.Success
 
orElseRethrow() - Method in class no.finntech.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.finntech.lambdacompanion.Either.LeftProjection
 
orElseThrow(Function<L, X>) - Method in class no.finntech.lambdacompanion.Either.RightProjection
 
orElseThrow(Function<X, Y>) - Method in class no.finntech.lambdacompanion.Failure
 
orElseThrow(Supplier<? extends X>) - Method in class no.finntech.lambdacompanion.StreamableOptional
 
orElseThrow(Function<X, Y>) - Method in class no.finntech.lambdacompanion.Success
 
orElseThrow(Function<X, Y>) - Method in class no.finntech.lambdacompanion.Try
Escapes the Try and enters a regular try-catch flow

P

Pair<L,R> - Class in no.finntech.lambdacompanion
Represents two values of two possible types together (a union of 2.)
Pair(L, R) - Constructor for class no.finntech.lambdacompanion.Pair
 
parallel() - Method in class no.finntech.lambdacompanion.ExtendedStream
 
peek(Consumer<? super L>) - Method in class no.finntech.lambdacompanion.Either.LeftProjection
Executes the given side-effecting function if this is a Left and returns this Either
peek(Consumer<? super R>) - Method in class no.finntech.lambdacompanion.Either.RightProjection
Executes the given side-effecting function if this is a Right and returns this Either
peek(Consumer<? super T>) - Method in class no.finntech.lambdacompanion.ExtendedStream
 
peek(ThrowingConsumer<? super T, ? extends Throwable>) - Method in class no.finntech.lambdacompanion.Failure
 
peek(ThrowingConsumer<? super T, ? extends Throwable>) - Method in class no.finntech.lambdacompanion.Success
 
peek(ThrowingConsumer<? super T, ? extends Throwable>) - Method in class no.finntech.lambdacompanion.Try
Same as forEach but returns the Try for further chaining
peekFailure(Consumer<Failure<T>>) - Method in class no.finntech.lambdacompanion.Failure
 
peekFailure(Consumer<Failure<T>>) - Method in class no.finntech.lambdacompanion.Success
 
peekFailure(Consumer<Failure<T>>) - Method in class no.finntech.lambdacompanion.Try
Does nothing on Success, but accepts a consumer on Failure

R

recover(Function<? super T, ? extends U>, Function<Throwable, ? extends U>) - Method in class no.finntech.lambdacompanion.Failure
 
recover(Function<? super T, ? extends U>, Function<Throwable, ? extends U>) - Method in class no.finntech.lambdacompanion.Success
 
recover(Function<? super T, ? extends U>, Function<Throwable, ? extends U>) - Method in class no.finntech.lambdacompanion.Try
Accepts two functions, the first applied if Success - returning the value, the other executed if Failure, returning a fallback value.
reduce(T, BinaryOperator<T>) - Method in class no.finntech.lambdacompanion.ExtendedStream
 
reduce(BinaryOperator<T>) - Method in class no.finntech.lambdacompanion.ExtendedStream
 
reduce(U, BiFunction<U, ? super T, U>, BinaryOperator<U>) - Method in class no.finntech.lambdacompanion.ExtendedStream
 
right() - Method in class no.finntech.lambdacompanion.Either
 
right(R) - Static method in class no.finntech.lambdacompanion.Either
 

S

sequential() - Method in class no.finntech.lambdacompanion.ExtendedStream
 
skip(long) - Method in class no.finntech.lambdacompanion.ExtendedStream
 
sorted() - Method in class no.finntech.lambdacompanion.ExtendedStream
 
sorted(Comparator<? super T>) - Method in class no.finntech.lambdacompanion.ExtendedStream
 
spliterator() - Method in class no.finntech.lambdacompanion.ExtendedStream
 
stream(Optional<T>) - Static method in class no.finntech.lambdacompanion.Optionals
Convenience method to turn an Optional into a Stream, due to the lack Optional#stream() method...
stream() - Method in class no.finntech.lambdacompanion.StreamableOptional
Turns this optional into a Stream
stream(Collection<T>) - Static method in class no.finntech.lambdacompanion.Streams
 
stream(Stream<T>) - Static method in class no.finntech.lambdacompanion.Streams
 
StreamableOptional<T> - Class in no.finntech.lambdacompanion
Wrapper around an usual Optional that provides the very missed StreamableOptional.stream() method useful for flatMapping a Stream of Optional (i.e.
Streams - Class in no.finntech.lambdacompanion
 
Streams() - Constructor for class no.finntech.lambdacompanion.Streams
 
Success<T> - Class in no.finntech.lambdacompanion
 
Success(T) - Constructor for class no.finntech.lambdacompanion.Success
 

T

tail(List<A>) - Static method in class no.finntech.lambdacompanion.Functions
 
ThrowingBiFunction<T,R,S,E extends Throwable> - Interface in no.finntech.lambdacompanion
 
ThrowingConsumer<T,E extends Throwable> - Interface in no.finntech.lambdacompanion
 
ThrowingFunction<T,R,E extends Throwable> - Interface in no.finntech.lambdacompanion
 
ThrowingSupplier<T,E extends Throwable> - Interface in no.finntech.lambdacompanion
 
toArray() - Method in class no.finntech.lambdacompanion.ExtendedStream
 
toArray(IntFunction<A[]>) - Method in class no.finntech.lambdacompanion.ExtendedStream
 
toEither() - Method in class no.finntech.lambdacompanion.Failure
 
toEither() - Method in class no.finntech.lambdacompanion.Success
 
toEither() - Method in class no.finntech.lambdacompanion.Try
Creates an Either where the Left is the Failure and Right is the Success from this Try
toList() - Method in class no.finntech.lambdacompanion.ExtendedStream
 
toMap() - Static method in class no.finntech.lambdacompanion.Pair
Shorthand to collect a Stream of Pair-s to a Map using left value as the key and right value as the value of the Map entries
toMapEntry() - Method in class no.finntech.lambdacompanion.Pair
 
toOptional() - Method in class no.finntech.lambdacompanion.Either.LeftProjection
 
toOptional() - Method in class no.finntech.lambdacompanion.Either.RightProjection
 
toOptional() - Method in class no.finntech.lambdacompanion.Failure
 
toOptional() - Method in class no.finntech.lambdacompanion.StreamableOptional
 
toOptional() - Method in class no.finntech.lambdacompanion.Success
 
toOptional() - Method in class no.finntech.lambdacompanion.Try
Creates an Optional wrapping the value if Success.
toSet() - Method in class no.finntech.lambdacompanion.ExtendedStream
 
toString() - Method in class no.finntech.lambdacompanion.Either
 
toString() - Method in class no.finntech.lambdacompanion.Failure
 
toString() - Method in class no.finntech.lambdacompanion.Success
 
Try<T> - Class in no.finntech.lambdacompanion
Try is a right-biased datatype for wrapping function calls that might fail with an Throwable.
Try() - Constructor for class no.finntech.lambdacompanion.Try
 

U

unordered() - Method in class no.finntech.lambdacompanion.ExtendedStream
 
A C D E F G H I J L M N O P R S T U 
Skip navigation links

Copyright © 2014–2015. All rights reserved.