public static <E1, E2> Pair<E1, E2> of(E1 first, E2 second) {
    return new Pair<>(first, second);
  }
An immutable pair of elements.

@author Peter Niederwieser
spock-core/src/main/java/org/spockframework/util/Pair.java