functional-reactive
Made in the European Union

Tuples (Pair…Sept)

Type-safe N-ary tuples for ad-hoc grouping.

The model package provides immutable, generic tuples from Single<T> up to Sept<T1…T7>, each with proper equals, hashCode and toString.

Pair<String, Integer> entry = new Pair<>("answer", 42);
entry.getT1(); // "answer"
entry.getT2(); // 42

Serializable variants live under com.svenruppert.functional.model.serial.