com.atlassian.bamboo.utils
Class Pair<A,B>

java.lang.Object
  extended by com.atlassian.bamboo.utils.Pair<A,B>
Type Parameters:
A - first item of pair
B - second item of pair

public class Pair<A,B>
extends java.lang.Object

A simple Pair class


Field Summary
 A first
           
 B second
           
 
Constructor Summary
Pair(A first, B second)
           
 
Method Summary
 int compareTo(Pair obj)
           
 boolean equals(java.lang.Object o)
           
 A getFirst()
           
 B getSecond()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

first

public final A first

second

public final B second
Constructor Detail

Pair

public Pair(A first,
            B second)
Method Detail

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)


Copyright © 2011 Atlassian. All Rights Reserved.