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 Object
A simple Pair class
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(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
make
@NotNull
public static <A,B> Pair<A,B> make(@Nullable
A first,
@Nullable
B second)
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.