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
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
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