org.knime.core.util
Class Pair<T,M>

java.lang.Object
  extended by org.knime.core.util.Pair<T,M>
Type Parameters:
T - class of the first object
M - class of the second object

public final class Pair<T,M>
extends Object

This class is a simple pair of objects.

Author:
Thorsten Meinl, University of Konstanz

Constructor Summary
Pair(T first, M second)
          Creates a new pair.
 
Method Summary
 boolean equals(Object o)
          
 T getFirst()
          Returns the first object.
 M getSecond()
          Returns the second object.
 int hashCode()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pair

public Pair(T first,
            M second)
Creates a new pair.

Parameters:
first - the first object
second - the second object
Method Detail

getFirst

public T getFirst()
Returns the first object.

Returns:
the first object

getSecond

public M getSecond()
Returns the second object.

Returns:
the second object

equals

public boolean equals(Object o)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.