org.aksw.commons.collections
Class Pair<S,T>

java.lang.Object
  extended by org.aksw.commons.collections.Pair<S,T>

public class Pair<S,T>
extends Object

A pair (two-tuple) of objects who can differ in type.

Author:
Konrad Höffner

Field Summary
 S first
           
 T second
           
 
Constructor Summary
Pair(S first, T second)
           
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

first

public S first

second

public T second
Constructor Detail

Pair

public Pair(S first,
            T second)
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.