diff --git a/projects/samskivert/src/java/com/samskivert/util/Tuple.java b/projects/samskivert/src/java/com/samskivert/util/Tuple.java new file mode 100644 index 00000000..5a2974f1 --- /dev/null +++ b/projects/samskivert/src/java/com/samskivert/util/Tuple.java @@ -0,0 +1,33 @@ +// +// $Id: Tuple.java,v 1.1 2001/05/29 03:29:54 mdb Exp $ + +package com.samskivert.util; + +/** + * A tuple is a simple object that holds a reference to two other objects. + */ +public class Tuple +{ + /** The left object. */ + public Object left; + + /** The right object. */ + public Object right; + + /** Construct a tuple with the specified two objects. */ + public Tuple (Object left, Object right) + { + this.left = left; + this.right = right; + } + + /** Construct a blank tuple. */ + public Tuple () + { + } + + public String toString () + { + return "[left=" + left + ", right=" + right + "]"; + } +}