Package edu.caltech.nanodb.util
Class Pair
- java.lang.Object
-
- edu.caltech.nanodb.util.Pair
-
public class Pair extends java.lang.Object
A simple read-only wrapper-class for holding two values. This is used to return results from the coercion functions, since they take two inputs and must coerce them into being the same types.
-
-
Constructor Summary
Constructors Constructor Description Pair(java.lang.Object obj1, java.lang.Object obj2)
Construct a new pair using the specified values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pair
swap()
Returns a newPair
object with the values swapped.
-
-
-
Method Detail
-
swap
public Pair swap()
Returns a newPair
object with the values swapped.- Returns:
- a new Pair object with the values swapped.
-
-