org.spockframework.util
Class Pair<E1,E2>

java.lang.Object
  extended by 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
 boolean equals(java.lang.Object other)
           
 E1 first()
           
 int hashCode()
           
static
<E1,E2> Pair<E1,E2>
of(E1 first, E2 second)
           
 E2 second()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

first

public E1 first()

second

public E2 second()

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

of

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


Copyright © 2013. All rights reserved