Skip navigation links
A C E F G H I M N O P R S T V W Z 

A

Action<T> - Interface in com.github.jparkie.promise
An action to be executed upon a promise.
await() - Method in interface com.github.jparkie.promise.Promise
Await the completion or the cancellation of the promise.
await(long, TimeUnit) - Method in interface com.github.jparkie.promise.Promise
Await the completion or the cancellation of the promise at most the time specified.

C

call(Promise<T>) - Method in interface com.github.jparkie.promise.Action
Performs an action on the promise.
call(Promise<T>) - Method in class com.github.jparkie.promise.actions.OnCancelAction
 
call(Promise<T>) - Method in class com.github.jparkie.promise.actions.OnCompleteAction
 
call(Promise<T>) - Method in class com.github.jparkie.promise.actions.OnFailureAction
 
call(Promise<T>) - Method in class com.github.jparkie.promise.actions.OnSuccessAction
 
call(Promise<T>) - Method in interface com.github.jparkie.promise.Function
Transforms an existing promise into a new promise.
call(Promise<T>) - Method in class com.github.jparkie.promise.functions.FallbackFunction
 
call(Promise<T>) - Method in class com.github.jparkie.promise.functions.FilterFunction
 
call(Promise<T>) - Method in class com.github.jparkie.promise.functions.FlatMapFunction
 
call(Promise<T>) - Method in class com.github.jparkie.promise.functions.MapFunction
 
call(Promise<T>) - Method in class com.github.jparkie.promise.functions.RecoverFunction
 
call(Promise<T>) - Method in class com.github.jparkie.promise.functions.TransformFunction
 
cancel() - Method in interface com.github.jparkie.promise.Action
Cleans any resources required by the action.
cancel() - Method in class com.github.jparkie.promise.actions.OnCallAction
 
cancel() - Method in class com.github.jparkie.promise.actions.OnCompleteAction
 
cancel() - Method in class com.github.jparkie.promise.actions.OnFailureAction
 
cancel() - Method in class com.github.jparkie.promise.actions.OnSuccessAction
 
cancel() - Method in interface com.github.jparkie.promise.Promise
Cancels the propagation of completion of the promise.
cancel(Action<T>) - Method in interface com.github.jparkie.promise.Scheduler
Propagates the cancel of an action.
com.github.jparkie.promise - package com.github.jparkie.promise
 
com.github.jparkie.promise.actions - package com.github.jparkie.promise.actions
 
com.github.jparkie.promise.extras - package com.github.jparkie.promise.extras
 
com.github.jparkie.promise.functions - package com.github.jparkie.promise.functions
 
create(A, B) - Static method in class com.github.jparkie.promise.extras.Pair
Convenience method for creating an appropriately typed pair.
create(Scheduler, Action<T>) - Static method in class com.github.jparkie.promise.Promises
Returns a promise scheduled to be resolved by the specified action.

E

equals(Object) - Method in class com.github.jparkie.promise.extras.Pair
Checks the two objects for equality by delegating to their respective Object.equals(Object) methods.
error(Throwable) - Static method in class com.github.jparkie.promise.Promises
Returns a new promise which wraps the provided error.
ExtraPromises - Class in com.github.jparkie.promise.extras
A helper class for Promise.

F

FallbackFunction<T> - Class in com.github.jparkie.promise.functions
 
FallbackFunction(Promise<T>) - Constructor for class com.github.jparkie.promise.functions.FallbackFunction
 
filter(T) - Method in class com.github.jparkie.promise.functions.FilterFunction
 
FilterFunction<T> - Class in com.github.jparkie.promise.functions
 
FilterFunction() - Constructor for class com.github.jparkie.promise.functions.FilterFunction
 
first - Variable in class com.github.jparkie.promise.extras.Pair
 
firstCompletedOf(Scheduler, Promise<T>...) - Static method in class com.github.jparkie.promise.extras.ExtraPromises
Returns a new promise which completes upon the first completion of any promise.
flatMap(T) - Method in class com.github.jparkie.promise.functions.FlatMapFunction
 
FlatMapFunction<T,U> - Class in com.github.jparkie.promise.functions
 
FlatMapFunction() - Constructor for class com.github.jparkie.promise.functions.FlatMapFunction
 
Function<T,U> - Interface in com.github.jparkie.promise
A function to transform a promise into a new promise.

G

get() - Method in interface com.github.jparkie.promise.Promise
Returns the value promised upon completion.
getError() - Method in interface com.github.jparkie.promise.Promise
Returns the error promised upon completion.

H

hashCode() - Method in class com.github.jparkie.promise.extras.Pair
Compute a hash code using the hash codes of the underlying objects

I

isCancelled() - Method in interface com.github.jparkie.promise.Promise
Returns whether the promise has been cancelled.
isDone() - Method in interface com.github.jparkie.promise.Promise
Returns whether the promise has been completed.
isSuccessful() - Method in interface com.github.jparkie.promise.Promise
Returns whether the promise has completed and has no errors .

M

map(T) - Method in class com.github.jparkie.promise.functions.MapFunction
 
MapFunction<T,U> - Class in com.github.jparkie.promise.functions
 
MapFunction() - Constructor for class com.github.jparkie.promise.functions.MapFunction
 

N

newExecutorServiceScheduler(ExecutorService) - Static method in class com.github.jparkie.promise.Schedulers
 
newSimpleScheduler() - Static method in class com.github.jparkie.promise.Schedulers
 

O

OnCallAction<T> - Class in com.github.jparkie.promise.actions
 
OnCallAction() - Constructor for class com.github.jparkie.promise.actions.OnCallAction
 
OnCancelAction<T> - Class in com.github.jparkie.promise.actions
 
OnCancelAction() - Constructor for class com.github.jparkie.promise.actions.OnCancelAction
 
OnCompleteAction<T> - Class in com.github.jparkie.promise.actions
 
OnCompleteAction() - Constructor for class com.github.jparkie.promise.actions.OnCompleteAction
 
onFailure(Throwable) - Method in class com.github.jparkie.promise.actions.OnCompleteAction
 
onFailure(Throwable) - Method in class com.github.jparkie.promise.actions.OnFailureAction
 
OnFailureAction<T> - Class in com.github.jparkie.promise.actions
 
OnFailureAction() - Constructor for class com.github.jparkie.promise.actions.OnFailureAction
 
onSuccess(T) - Method in class com.github.jparkie.promise.actions.OnCompleteAction
 
onSuccess(T) - Method in class com.github.jparkie.promise.actions.OnSuccessAction
 
OnSuccessAction<T> - Class in com.github.jparkie.promise.actions
 
OnSuccessAction() - Constructor for class com.github.jparkie.promise.actions.OnSuccessAction
 

P

Pair<F,S> - Class in com.github.jparkie.promise.extras
Container to ease passing around a tuple of two objects.
Pair(F, S) - Constructor for class com.github.jparkie.promise.extras.Pair
Constructor for a Pair.
Promise<T> - Interface in com.github.jparkie.promise
A Promise is an object which can be completed with a value or failed with an exception.
promise() - Static method in class com.github.jparkie.promise.Promises
Returns a new unresolved promise.
Promises - Class in com.github.jparkie.promise
A companion class for Promise.

R

RecoverFunction<T> - Class in com.github.jparkie.promise.functions
 
RecoverFunction(T) - Constructor for class com.github.jparkie.promise.functions.RecoverFunction
 

S

schedule(Action<T>, Promise<T>) - Method in interface com.github.jparkie.promise.Scheduler
Propagates the call of an action on the promise.
Scheduler - Interface in com.github.jparkie.promise
A Scheduler executes an Action on a Promise.
Schedulers - Class in com.github.jparkie.promise
A companion class for Scheduler.
second - Variable in class com.github.jparkie.promise.extras.Pair
 
set(T) - Method in interface com.github.jparkie.promise.Promise
Completes the promise with a value.
setError(Throwable) - Method in interface com.github.jparkie.promise.Promise
Completes the promise with an error.

T

then(Scheduler, Function<T, U>) - Method in interface com.github.jparkie.promise.Promise
Returns a new transformed promise specified by the function upon the completion of this promise.
then(Scheduler, Action<T>) - Method in interface com.github.jparkie.promise.Promise
Calls the action on the promise upon the completion of this promise.
TransformFunction<T,U> - Class in com.github.jparkie.promise.functions
 
TransformFunction() - Constructor for class com.github.jparkie.promise.functions.TransformFunction
 
transformSuccess(T) - Method in class com.github.jparkie.promise.functions.TransformFunction
 
transformThrowable(Throwable) - Method in class com.github.jparkie.promise.functions.TransformFunction
 

V

value(T) - Static method in class com.github.jparkie.promise.Promises
Returns a new promise which wraps the provided value.

W

whenAll(Scheduler, Promise<?>...) - Static method in class com.github.jparkie.promise.extras.ExtraPromises
Returns a new promise which waits for the successful completion of all provided promises.

Z

zip(Scheduler, Promise<T>, Promise<U>) - Static method in class com.github.jparkie.promise.extras.ExtraPromises
Zips two promises into one promise.
A C E F G H I M N O P R S T V W Z 
Skip navigation links