メソッドの返り値の型を Observable<T> でくるむようにアプリケーション開発していたりすると、要件によってはストリームに複数種の値を流したくなることがあります。 Java(Android) に Tuple は無いのですが、任意の型かつ複数種の値を保持できるクラスを独自に用意しておくと便利です。 例として2つの値を扱う場合は次のようになります。 public class Tuple2<T1, T2> { private final T1 t1; private final T2 t2; private Tuple2(T1 t1, T2 t2) { this.t1 = t1; this.t2 = t2; } public T1 get1() { return t1; } public T2 get2() { return t2; } public static <T1, T2> Tu