- java.lang.Object
-
- com.spotify.futures.JoinedResults
-
public final class JoinedResults extends java.lang.ObjectContains references to a set of joined future values.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classJoinedResults.Null(package private) static classJoinedResults.Transform
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<com.google.common.util.concurrent.ListenableFuture<?>,java.lang.Object>futures
-
Constructor Summary
Constructors Modifier Constructor Description privateJoinedResults(java.util.Map<com.google.common.util.concurrent.ListenableFuture<?>,java.lang.Object> futures)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <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.
-