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 final 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)
          Deprecated. since 4.3 use $make(Object, Object)
 
Method Summary
 int compareTo(Pair obj)
           
 boolean equals(java.lang.Object o)
           
 A getFirst()
           
 B getSecond()
           
 int hashCode()
           
static
<A,B> Pair<A,B>
make(A first, B second)
           
 
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

@Deprecated
public Pair(A first,
                       B second)
Deprecated. since 4.3 use $make(Object, Object)

Parameters:
first -
second -
Method Detail

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.