tachyon
Class Pair<First,Second>

java.lang.Object
  extended by tachyon.Pair<First,Second>
Type Parameters:
First - the first element of the Pair.
Second - the second element of the Pair.

public class Pair<First,Second>
extends Object

A pair representation defined by two elements (of type First and type Second).


Constructor Summary
Pair(First first, Second second)
          Constructs and initializes a Pair specified by the two input elements.
 
Method Summary
 boolean equals(Object o)
           
 First getFirst()
           
 Second getSecond()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pair

public Pair(First first,
            Second second)
Constructs and initializes a Pair specified by the two input elements.

Parameters:
first - the first element of the pair (of type First)
second - the second element of the pair (of type Second)
Method Detail

getFirst

public First getFirst()
Returns:
the first element of the pair.

getSecond

public Second getSecond()
Returns:
the second element of the pair.

equals

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


Copyright © 2013. All Rights Reserved.