Package com.spotify.futures
Class JoinedResults
java.lang.Object
com.spotify.futures.JoinedResults
Contains references to a set of joined future values.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static enum(package private) static class -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateJoinedResults(Map<com.google.common.util.concurrent.ListenableFuture<?>, Object> futures) -
Method Summary
Modifier and TypeMethodDescription<T> Tget(com.google.common.util.concurrent.ListenableFuture<T> future) Gets a future value if it was part of the joined future values, else throws an illegal argument exception.
-
Field Details
-
futures
-
-
Constructor Details
-
JoinedResults
-
-
Method Details
-
get
public <T> T get(com.google.common.util.concurrent.ListenableFuture<T> future) Gets a future value if it was part of the joined future values, else throws an illegal argument exception.
-