A C E F G H I L M R T U W 

A

accept(T) - Method in interface com.github.nullterminated.trylambda.CheckedConsumer
 
accepts(T) - Method in interface com.github.nullterminated.trylambda.CheckedConsumer
Same as accept except Exceptions may be thrown.
applies(T) - Method in interface com.github.nullterminated.trylambda.CheckedFunction
Same as apply except Exceptions may be thrown.
apply(T) - Method in interface com.github.nullterminated.trylambda.CheckedFunction
 

C

CheckedConsumer<T> - Interface in com.github.nullterminated.trylambda
A consumer interface that automatically wraps any exceptions.
CheckedFunction<T,R> - Interface in com.github.nullterminated.trylambda
A function interface that automatically wraps any exceptions.
CheckedSupplier<T> - Interface in com.github.nullterminated.trylambda
A supplier interface that automatically wraps any exceptions.
com.github.nullterminated.trylambda - package com.github.nullterminated.trylambda
trylambda

E

either(CheckedSupplier<R>) - Static method in class com.github.nullterminated.trylambda.Try
This method exists to allow usage of either with checked suppliers without casting or needing to declare the checked supplier explicitly.
either(Supplier<R>) - Static method in class com.github.nullterminated.trylambda.Try
Wraps the call to get in a try block.
Either<A,B> - Class in com.github.nullterminated.trylambda
A Java implementation of the Either monad.
Either.Left<A,B> - Class in com.github.nullterminated.trylambda
 
Either.Right<A,B> - Class in com.github.nullterminated.trylambda
 
equals(Object) - Method in class com.github.nullterminated.trylambda.Either.Left
 
equals(Object) - Method in class com.github.nullterminated.trylambda.Either.Right
 

F

flip() - Method in class com.github.nullterminated.trylambda.Either
Flip an Either<A,B> to a Either<B,A>.
flip() - Method in class com.github.nullterminated.trylambda.Either.Left
 
flip() - Method in class com.github.nullterminated.trylambda.Either.Right
 

G

get() - Method in interface com.github.nullterminated.trylambda.CheckedSupplier
 
getCause() - Method in exception com.github.nullterminated.trylambda.WrappedException
Overridden to return Exception types instead of Throwable.
getLeft() - Method in class com.github.nullterminated.trylambda.Either
 
getLeft() - Method in class com.github.nullterminated.trylambda.Either.Left
 
getLeft() - Method in class com.github.nullterminated.trylambda.Either.Right
 
getRight() - Method in class com.github.nullterminated.trylambda.Either
 
getRight() - Method in class com.github.nullterminated.trylambda.Either.Left
 
getRight() - Method in class com.github.nullterminated.trylambda.Either.Right
 
gets() - Method in interface com.github.nullterminated.trylambda.CheckedSupplier
Same as get except Exceptions may be thrown.

H

hashCode() - Method in class com.github.nullterminated.trylambda.Either.Left
 
hashCode() - Method in class com.github.nullterminated.trylambda.Either.Right
 

I

isLeft() - Method in class com.github.nullterminated.trylambda.Either
 
isRight() - Method in class com.github.nullterminated.trylambda.Either
 

L

left(A) - Static method in class com.github.nullterminated.trylambda.Either
Factory method for constructing lefts.

M

map(Function<A, X>, Function<B, Y>) - Method in class com.github.nullterminated.trylambda.Either.Left
 
map(Function<A, X>, Function<B, Y>) - Method in class com.github.nullterminated.trylambda.Either
Map this Either<A,B> to a new Either<X,Y>.
map(Function<A, X>, Function<B, Y>) - Method in class com.github.nullterminated.trylambda.Either.Right
 

R

reduce(Function<A, T>, Function<B, T>) - Method in class com.github.nullterminated.trylambda.Either.Left
 
reduce(Function<A, T>, Function<B, T>) - Method in class com.github.nullterminated.trylambda.Either
Reduce an Either<A,B> to a single value type T.
reduce(Function<A, T>, Function<B, T>) - Method in class com.github.nullterminated.trylambda.Either.Right
 
right(B) - Static method in class com.github.nullterminated.trylambda.Either
Factory method for constructing rights.

T

toString() - Method in class com.github.nullterminated.trylambda.Either.Left
 
toString() - Method in class com.github.nullterminated.trylambda.Either.Right
 
Try - Class in com.github.nullterminated.trylambda
A utility class for handling try blocks using lambda expressions.
trys(CheckedSupplier<T>, Function<Exception, CheckedSupplier<R>>, Function<T, CheckedSupplier<R>>) - Static method in class com.github.nullterminated.trylambda.Try
A method to use auto closing try with resources with lambda parameters.
trys(CheckedSupplier<T>, Function<T, CheckedSupplier<R>>) - Static method in class com.github.nullterminated.trylambda.Try
Calls the three argument form of this method with an error handler which simply wraps any exception in a WrappedException.

U

use(Consumer<A>, Consumer<B>) - Method in class com.github.nullterminated.trylambda.Either.Left
 
use(Consumer<A>, Consumer<B>) - Method in class com.github.nullterminated.trylambda.Either.Right
 
use(Consumer<A>, Consumer<B>) - Method in class com.github.nullterminated.trylambda.Either
Pass the value of this either to a consumer.

W

wrap(Exception) - Static method in exception com.github.nullterminated.trylambda.WrappedException
Factory method to generate a WrappedException.
wrap(String, Exception) - Static method in exception com.github.nullterminated.trylambda.WrappedException
Factory method to generate a WrappedException.
WrappedException - Exception in com.github.nullterminated.trylambda
A simple unchecked exception wrapper for wrapping checked Exception types.
A C E F G H I L M R T U W 
Skip navigation links

Copyright © 2018. All rights reserved.