114115116117118119120121122
final TupleGenerator generator = new TupleGenerator(first, second); return new Generator<Pair<A, B>>() { @SuppressWarnings("unchecked") public Pair<A, B> next() { Object[] next = generator.next(); return new Pair(next[0], next[1]); } }; }