Class Pair<X,Y>

java.lang.Object
  extended by Pair<X,Y>

public class Pair<X,Y>
extends java.lang.Object

Utility wrapper to allow one to effectively return two values from a method.

Author:
Dave Musicant, with considerable material reused from the UW-Madison Minibase project

Field Summary
 X first
           
 Y second
           
 
Constructor Summary
Pair(X first, Y second)
          Constructor
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

first

public X first

second

public Y second
Constructor Detail

Pair

public Pair(X first,
            Y second)
Constructor

Parameters:
first - the first value
second - the second value