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
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
@Deprecated
public Pair(A first,
B second)
- Deprecated. since 4.3 use $
make(Object, Object)
- Parameters:
first
- second
-
getFirst
@Nullable
public A getFirst()
getSecond
@Nullable
public B getSecond()
compareTo
public int compareTo(Pair obj)
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
make
@NotNull
public static <A,B> Pair<A,B> make(@Nullable
A first,
@Nullable
B second)
Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.