com.indexdata.torus2.util
Class Pair<A,B>

java.lang.Object
  extended by com.indexdata.torus2.util.Pair<A,B>

public class Pair<A,B>
extends Object

Generic pair tuple.

Author:
jakub

Constructor Summary
Pair(A first, B second)
           
 
Method Summary
 boolean equals(Object other)
           
 A getFirst()
           
 B getSecond()
           
 int hashCode()
           
 void setFirst(A first)
           
 void setSecond(B second)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pair

public Pair(A first,
            B second)
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Overrides:
toString in class Object

getFirst

public A getFirst()

setFirst

public void setFirst(A first)

getSecond

public B getSecond()

setSecond

public void setSecond(B second)


Copyright © 2008-2013 Index Data. All Rights Reserved.