Package org.spockframework.util
Class Pair<E1,E2>
- java.lang.Object
-
- org.spockframework.util.Pair<E1,E2>
-
public class Pair<E1,E2> extends java.lang.Object
An immmutable pair of elements.- Author:
- Peter Niederwieser
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
E1
first()
int
hashCode()
static <E1,E2>
Pair<E1,E2>of(E1 first, E2 second)
E2
second()
-
-
-
Method Detail
-
first
public E1 first()
-
second
public E2 second()
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
of
public static <E1,E2> Pair<E1,E2> of(E1 first, E2 second)
-
-