play.libs
Class F.Promise<A>

java.lang.Object
  extended by play.libs.F.Promise<A>
Enclosing class:
F

public static class F.Promise<A>
extends java.lang.Object


Constructor Summary
F.Promise(play.api.libs.concurrent.Promise<A> promise)
           
 
Method Summary
<B> F.Promise<B>
flatMap(F.Function<A,F.Promise<B>> f)
           
 A get()
           
 play.api.libs.concurrent.Promise<A> getWrappedPromise()
           
<B> F.Promise<B>
map(F.Function<A,B> f)
           
 void onRedeem(F.Callback<A> action)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

F.Promise

public F.Promise(play.api.libs.concurrent.Promise<A> promise)
Method Detail

get

public A get()

onRedeem

public void onRedeem(F.Callback<A> action)

map

public <B> F.Promise<B> map(F.Function<A,B> f)

flatMap

public <B> F.Promise<B> flatMap(F.Function<A,F.Promise<B>> f)

getWrappedPromise

public play.api.libs.concurrent.Promise<A> getWrappedPromise()