play.libs.F.Tuple

Here are the examples of the java api play.libs.F.Tuple taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

13 Source : PromiseTest.java
with MIT License
from vangav

@Test
public void zip() {
    Promise<String> a = Promise.pure("a");
    Promise<Integer> b = Promise.pure(10);
    Tuple<String, Integer> ab = a.zip(b).get();
    replacedertThat(ab._1).isEqualTo("a");
    replacedertThat(ab._2).isEqualTo(10);
}