com.atlassian.jira.util.lang
Class Pair<F,S>

java.lang.Object
  extended by com.atlassian.jira.util.lang.Pair<F,S>
Type Parameters:
F - type of the first element
S - type of the second element

@ThreadSafe
public final class Pair<F,S>
extends Object

Immutable, generic pair of non-null values. How coool is that!

Since:
v4.2

Method Summary
 boolean equals(Object o)
           
 F first()
           
 int hashCode()
           
static
<U,V> Pair<U,V>
of(U first, V second)
           
 S second()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

of

public static <U,V> Pair<U,V> of(U first,
                                 V second)

first

public F first()

second

public S second()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2012 Atlassian. All Rights Reserved.