com.atlassian.jira.util.lang
Class Pair<F,S>
java.lang.Object
com.atlassian.jira.util.lang.Pair<F,S>
- Type Parameters:
F
- type of the first elementS
- 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
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.