Skip navigation links
A C E F G I L M O P R S T U W 

A

accept(T) - Method in interface com.aol.cyclops.trycatch.Try.CheckedConsumer
 
andFinally(Try.CheckedConsumer<V, X>) - Method in interface com.aol.cyclops.trycatch.Try.AndFinally
Define the finally block and execute the Try
andFinally(Try.CheckedConsumer<V, X>) - Method in class com.aol.cyclops.trycatch.Try.MyFinallyBlock
 
anyM() - Method in class com.aol.cyclops.trycatch.Failure
 
anyM() - Method in class com.aol.cyclops.trycatch.Success
 
anyM() - Method in interface com.aol.cyclops.trycatch.Try
 
anyMFailure() - Method in class com.aol.cyclops.trycatch.Failure
 
anyMFailure() - Method in class com.aol.cyclops.trycatch.Success
 
anyMFailure() - Method in interface com.aol.cyclops.trycatch.Try
 
anyMOf(X) - Static method in class com.aol.cyclops.trycatch.Failure
Construct a Failure instance from a throwable
anyMOf(T, Class<? extends Throwable>[]) - Static method in class com.aol.cyclops.trycatch.Success
 
anyMOf(T) - Static method in class com.aol.cyclops.trycatch.Success
 
anyMSuccess() - Method in class com.aol.cyclops.trycatch.Failure
 
anyMSuccess() - Method in class com.aol.cyclops.trycatch.Success
 
anyMSuccess() - Method in interface com.aol.cyclops.trycatch.Try
 
apply(T) - Method in interface com.aol.cyclops.trycatch.Try.CheckedFunction
 

C

catchExceptions(Class<? extends X>...) - Static method in interface com.aol.cyclops.trycatch.Try
Fluent step builder for Try / Catch / Finally and Try with resources equivalents.
close() - Method in interface com.aol.cyclops.trycatch.Try.AndFinally
Create a finally block that auto-closes any Closeables specified during init including those inside an Iterable
close() - Method in class com.aol.cyclops.trycatch.Try.MyFinallyBlock
 
com.aol.cyclops.trycatch - package com.aol.cyclops.trycatch
 

E

empty() - Method in class com.aol.cyclops.trycatch.TryComprehender
 

F

Failure<T,X extends java.lang.Throwable> - Class in com.aol.cyclops.trycatch
Class that represents the Failure of a Try
Failure() - Constructor for class com.aol.cyclops.trycatch.Failure
 
filter(Predicate<T>) - Method in class com.aol.cyclops.trycatch.Failure
 
filter(Predicate<T>) - Method in class com.aol.cyclops.trycatch.Success
 
filter(Predicate<T>) - Method in interface com.aol.cyclops.trycatch.Try
 
filter(Try, Predicate) - Method in class com.aol.cyclops.trycatch.TryComprehender
 
filter(Predicate<T>) - Method in class com.aol.cyclops.trycatch.TryT
Filter the wrapped Try
flatMap(Function<T, Try<R, X>>) - Method in class com.aol.cyclops.trycatch.Failure
 
flatMap(Function<T, Try<R, X>>) - Method in class com.aol.cyclops.trycatch.Success
 
flatMap(Function<T, Try<R, X>>) - Method in interface com.aol.cyclops.trycatch.Try
 
flatMap(Try, Function) - Method in class com.aol.cyclops.trycatch.TryComprehender
 
flatMap(Function1<T, TryT<B, X>>) - Method in class com.aol.cyclops.trycatch.TryT
Flat Map the wrapped Try
flatten() - Method in class com.aol.cyclops.trycatch.Failure
 
flatten() - Method in class com.aol.cyclops.trycatch.Success
 
flatten() - Method in interface com.aol.cyclops.trycatch.Try
Flatten a nested Try Structure
foreach(Consumer<T>) - Method in class com.aol.cyclops.trycatch.Failure
 
foreach(Consumer<T>) - Method in class com.aol.cyclops.trycatch.Success
 
foreach(Consumer<T>) - Method in interface com.aol.cyclops.trycatch.Try
 
foreachFailed(Consumer<X>) - Method in class com.aol.cyclops.trycatch.Failure
 
foreachFailed(Consumer<X>) - Method in class com.aol.cyclops.trycatch.Success
 
foreachFailed(Consumer<X>) - Method in interface com.aol.cyclops.trycatch.Try
 
fromAnyM(AnyM<A>) - Static method in class com.aol.cyclops.trycatch.TryT
Construct an TryT from an AnyM that contains a monad type that contains type other than Try The values in the underlying monad will be mapped to Try

G

get() - Method in class com.aol.cyclops.trycatch.Failure
 
get() - Method in class com.aol.cyclops.trycatch.Success
 
get() - Method in interface com.aol.cyclops.trycatch.Try.CheckedSupplier
 
get() - Method in interface com.aol.cyclops.trycatch.Try
 
getTargetClass() - Method in class com.aol.cyclops.trycatch.TryComprehender
 

I

init(Try.CheckedSupplier<V, X>) - Method in interface com.aol.cyclops.trycatch.Try.Init
Initialise a try / catch / finally block Define the variables to be used within the block.
init(Try.CheckedSupplier<V, X>) - Method in class com.aol.cyclops.trycatch.Try.MyInit
 
instanceOfT(Object) - Method in class com.aol.cyclops.trycatch.TryComprehender
 
isFailure() - Method in class com.aol.cyclops.trycatch.Failure
 
isFailure() - Method in class com.aol.cyclops.trycatch.Success
 
isFailure() - Method in interface com.aol.cyclops.trycatch.Try
 
isSuccess() - Method in class com.aol.cyclops.trycatch.Failure
 
isSuccess() - Method in class com.aol.cyclops.trycatch.Success
 
isSuccess() - Method in interface com.aol.cyclops.trycatch.Try
 

L

lift(Function<U, R>) - Static method in class com.aol.cyclops.trycatch.TryT
Lift a function into one that accepts and returns an TryT This allows multiple monad types to add functionality to existing functions and methods e.g.
lift2(BiFunction<U1, U2, R>) - Static method in class com.aol.cyclops.trycatch.TryT
Lift a BiFunction into one that accepts and returns TryTs This allows multiple monad types to add functionality to existing functions and methods e.g.

M

map(Function<T, R>) - Method in class com.aol.cyclops.trycatch.Failure
 
map(Function<T, R>) - Method in class com.aol.cyclops.trycatch.Success
 
map(Function<T, R>) - Method in interface com.aol.cyclops.trycatch.Try
 
map(Try, Function) - Method in class com.aol.cyclops.trycatch.TryComprehender
 
map(Function<T, B>) - Method in class com.aol.cyclops.trycatch.TryT
Map the wrapped Try
MyFinallyBlock() - Constructor for class com.aol.cyclops.trycatch.Try.MyFinallyBlock
 
MyInit() - Constructor for class com.aol.cyclops.trycatch.Try.MyInit
 
MyTryCatch() - Constructor for class com.aol.cyclops.trycatch.Try.MyTryCatch
 

O

of(X) - Static method in class com.aol.cyclops.trycatch.Failure
Construct a Failure instance from a throwable
of(T) - Static method in class com.aol.cyclops.trycatch.Success
 
of(T, Class<? extends Throwable>[]) - Static method in class com.aol.cyclops.trycatch.Success
 
of(T, Class<? extends Throwable>...) - Static method in interface com.aol.cyclops.trycatch.Try
Return a Try that will catch specified exceptions when map / flatMap called For use with liftM / liftM2 and For Comprehensions (when Try is at the top level)
of(Object) - Method in class com.aol.cyclops.trycatch.TryComprehender
 
of(AnyM<Try<A, X>>) - Static method in class com.aol.cyclops.trycatch.TryT
Construct an TryT from an AnyM that wraps a monad containing Trys
onFail(Consumer<X>) - Method in class com.aol.cyclops.trycatch.Failure
 
onFail(Class<? extends X>, Consumer<X>) - Method in class com.aol.cyclops.trycatch.Failure
 
onFail(Consumer<X>) - Method in class com.aol.cyclops.trycatch.Success
 
onFail(Class<? extends X>, Consumer<X>) - Method in class com.aol.cyclops.trycatch.Success
 
onFail(Consumer<X>) - Method in interface com.aol.cyclops.trycatch.Try
 
onFail(Class<? extends X>, Consumer<X>) - Method in interface com.aol.cyclops.trycatch.Try
 
orElse(T) - Method in class com.aol.cyclops.trycatch.Failure
 
orElse(T) - Method in class com.aol.cyclops.trycatch.Success
 
orElse(T) - Method in interface com.aol.cyclops.trycatch.Try
 
orElseGet(Supplier<T>) - Method in class com.aol.cyclops.trycatch.Failure
 
orElseGet(Supplier<T>) - Method in class com.aol.cyclops.trycatch.Success
 
orElseGet(Supplier<T>) - Method in interface com.aol.cyclops.trycatch.Try
 

P

peek(Consumer<T>) - Method in interface com.aol.cyclops.trycatch.Try
 
peek(Consumer<T>) - Method in class com.aol.cyclops.trycatch.TryT
Peek at the current value of the Try
peekFailed(Consumer<X>) - Method in interface com.aol.cyclops.trycatch.Try
 

R

recover(Function<X, T>) - Method in class com.aol.cyclops.trycatch.Failure
 
recover(Function<X, T>) - Method in class com.aol.cyclops.trycatch.Success
 
recover(Function<X, T>) - Method in interface com.aol.cyclops.trycatch.Try
 
recoverFor(Class<? extends X>, Function<X, T>) - Method in class com.aol.cyclops.trycatch.Failure
 
recoverFor(Class<? extends X>, Function<X, T>) - Method in class com.aol.cyclops.trycatch.Success
 
recoverFor(Class<? extends X>, Function<X, T>) - Method in interface com.aol.cyclops.trycatch.Try
Recover if exception is of specified type
recoverWith(Function<X, Success<T, X>>) - Method in class com.aol.cyclops.trycatch.Failure
 
recoverWith(Function<X, Success<T, X>>) - Method in class com.aol.cyclops.trycatch.Success
 
recoverWith(Function<X, Success<T, X>>) - Method in interface com.aol.cyclops.trycatch.Try
flatMap recovery
recoverWithFor(Class<? extends X>, Function<X, Success<T, X>>) - Method in class com.aol.cyclops.trycatch.Failure
 
recoverWithFor(Class<? extends X>, Function<X, Success<T, X>>) - Method in class com.aol.cyclops.trycatch.Success
 
recoverWithFor(Class<? extends X>, Function<X, Success<T, X>>) - Method in interface com.aol.cyclops.trycatch.Try
FlatMap recovery function if exception is of specified type
resolveForCrossTypeFlatMap(Comprehender, Try) - Method in class com.aol.cyclops.trycatch.TryComprehender
 
run() - Method in interface com.aol.cyclops.trycatch.Try.CheckedRunnable
 
run(Try.CheckedRunnable<X>) - Method in interface com.aol.cyclops.trycatch.Try.Init
Run the supplied CheckedRunnable and trap any Exceptions Return type is Void
run(Try.CheckedRunnable<X>) - Method in class com.aol.cyclops.trycatch.Try.MyInit
 
runWithCatch(Try.CheckedRunnable, Class<? extends X>...) - Static method in interface com.aol.cyclops.trycatch.Try
Try to execute supplied Runnable and will Catch specified Excpetions or java.lang.Exception if none specified.

S

stream() - Method in class com.aol.cyclops.trycatch.Failure
 
stream() - Method in class com.aol.cyclops.trycatch.Success
 
stream() - Method in interface com.aol.cyclops.trycatch.Try
 
Success<T,X extends java.lang.Throwable> - Class in com.aol.cyclops.trycatch
Class that represents a Successful Try
Success() - Constructor for class com.aol.cyclops.trycatch.Success
 

T

throwException() - Method in class com.aol.cyclops.trycatch.Failure
 
throwException() - Method in class com.aol.cyclops.trycatch.Success
 
throwException() - Method in interface com.aol.cyclops.trycatch.Try
Throw exception if Failure, do nothing if success
toFailedOptional() - Method in class com.aol.cyclops.trycatch.Failure
 
toFailedOptional() - Method in class com.aol.cyclops.trycatch.Success
 
toFailedOptional() - Method in interface com.aol.cyclops.trycatch.Try
 
toFailedStream() - Method in class com.aol.cyclops.trycatch.Failure
 
toFailedStream() - Method in class com.aol.cyclops.trycatch.Success
 
toFailedStream() - Method in interface com.aol.cyclops.trycatch.Try
 
toOptional() - Method in class com.aol.cyclops.trycatch.Failure
 
toOptional() - Method in class com.aol.cyclops.trycatch.Success
 
toOptional() - Method in interface com.aol.cyclops.trycatch.Try
 
toString() - Method in class com.aol.cyclops.trycatch.TryT
 
Try<T,X extends java.lang.Throwable> - Interface in com.aol.cyclops.trycatch
Light weight Try Monad Fail fast behaviour with more explicit declararions required compared to with scala.util.Try and javaslang.monad.Try.
Try.AndFinally<T,V,X extends java.lang.Throwable> - Interface in com.aol.cyclops.trycatch
 
Try.CheckedConsumer<T,X extends java.lang.Throwable> - Interface in com.aol.cyclops.trycatch
 
Try.CheckedFunction<T,R,X extends java.lang.Throwable> - Interface in com.aol.cyclops.trycatch
 
Try.CheckedRunnable<X extends java.lang.Throwable> - Interface in com.aol.cyclops.trycatch
 
Try.CheckedSupplier<T,X extends java.lang.Throwable> - Interface in com.aol.cyclops.trycatch
 
Try.Init<X extends java.lang.Throwable> - Interface in com.aol.cyclops.trycatch
 
Try.MyFinallyBlock<T,V,X extends java.lang.Throwable> - Class in com.aol.cyclops.trycatch
 
Try.MyInit<X extends java.lang.Throwable> - Class in com.aol.cyclops.trycatch
 
Try.MyTryCatch<V,X extends java.lang.Throwable> - Class in com.aol.cyclops.trycatch
 
Try.TryCatch<V,X extends java.lang.Throwable> - Interface in com.aol.cyclops.trycatch
 
TryComprehender - Class in com.aol.cyclops.trycatch
Comprehender for performant for-comprehensions for Try Behaviour in cross-type flatMap is to create an empty instance for Failures, but always pass Successes on
TryComprehender() - Constructor for class com.aol.cyclops.trycatch.TryComprehender
 
TryT<T,X extends java.lang.Throwable> - Class in com.aol.cyclops.trycatch
Monad transformer for JDK Try TryT consists of an AnyM instance that in turns wraps another Monad type that contains an Try TryT>>> TryT allows the deeply wrapped Try to be manipulating within it's nested /contained context
tryThis(Try.CheckedSupplier<V, X>) - Method in interface com.aol.cyclops.trycatch.Try.Init
Run the supplied CheckedSupplier and trap the return value or an Exception inside a Try
tryThis(Try.CheckedSupplier<V, X>) - Method in class com.aol.cyclops.trycatch.Try.MyInit
 
tryThis(Try.CheckedFunction<V, T, X>) - Method in class com.aol.cyclops.trycatch.Try.MyTryCatch
 
tryThis(Try.CheckedFunction<V, T, X>) - Method in interface com.aol.cyclops.trycatch.Try.TryCatch
Build another stage in try / catch / finally block This defines the CheckedFunction that will be run in the main body of the catch block Next step can define the finally block
tryWithResources(Try.CheckedFunction<V, T, X>) - Method in class com.aol.cyclops.trycatch.Try.MyTryCatch
 
tryWithResources(Try.CheckedFunction<V, T, X>) - Method in interface com.aol.cyclops.trycatch.Try.TryCatch
Will execute and run the CheckedFunction supplied and will automatically safely close any Closeables supplied during init (either individually or inside an iterable)

U

unapply() - Method in class com.aol.cyclops.trycatch.Failure
 
unapply() - Method in class com.aol.cyclops.trycatch.Success
 
unwrap() - Method in class com.aol.cyclops.trycatch.TryT
 

W

withCatch(Try.CheckedSupplier<T, X>, Class<? extends X>...) - Static method in interface com.aol.cyclops.trycatch.Try
Try to execute supplied Supplier and will Catch specified Excpetions or java.lang.Exception if none specified.
A C E F G I L M O P R S T U W 
Skip navigation links