Class Pair<E1,E2>

java.lang.Object
org.spockframework.util.Pair<E1,E2>

public class Pair<E1,E2> extends Object
An immmutable pair of elements.
Author:
Peter Niederwieser
  • Method Details

    • first

      public E1 first()
    • second

      public E2 second()
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • of

      public static <E1, E2> Pair<E1,E2> of(E1 first, E2 second)