com.atlassian.bamboo.utils
Class Pair<A,B>
java.lang.Object
com.atlassian.bamboo.utils.Pair<A,B>
- Type Parameters:
A
- first item of pairB
- second item of pair
public final class Pair<A,B>
- extends java.lang.Object
A simple Pair class
Constructor Summary |
Pair(A first,
B second)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
first
public final A first
second
public final B second
Pair
public Pair(A first,
B second)
getFirst
public A getFirst()
getSecond
public B getSecond()
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
compareTo
public int compareTo(Pair obj)
make
public static <A,B> Pair<A,B> make(A first,
B second)
Copyright © 2012 Atlassian. All Rights Reserved.