Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.util
Class Pair<F,S>

java.lang.Object
  extended by eu.esdihumboldt.util.Pair<F,S>
Type Parameters:
F - the type of the first object
S - the type of the second object

@Immutable
public class Pair<F,S>
extends Object

An object pair

Author:
Simon Templer

Constructor Summary
Pair(F first, S second)
          Create a pair with the given objects
 
Method Summary
 boolean equals(Object obj)
           
 F getFirst()
          Get the first object
 S getSecond()
          Get 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(F first,
            S second)
Create a pair with the given objects

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

getFirst

public F getFirst()
Get the first object

Returns:
the first object

getSecond

public S getSecond()
Get the second object

Returns:
the second object

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
See Also:
Object.equals(Object)

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d