//
// $Id: IntTuple.java,v 1.1 2001/10/15 18:08:47 mdb Exp $
//
// samskivert library - useful routines for java programs
// Copyright (C) 2001 Michael Bayne
// 
// This library is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License as published
// by the Free Software Foundation; either version 2.1 of the License, or
// (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

package com.samskivert.util;

/**
 * A simple object that holds a reference to two ints.
 */
public class IntTuple
{
    /** The left int. */
    public int left;

    /** The right int. */
    public int right;

    /** Construct a tuple with the specified two objects. */
    public IntTuple (int left, int right)
    {
        this.left = left;
        this.right = right;
    }

    /** Construct a blank tuple. */
    public IntTuple ()
    {
    }

    public String toString ()
    {
        return "[left=" + left + ", right=" + right + "]";
    }
}

@@ -26,29 +26,29 @@
 v 1.
-1
+2
  200
-1/10/15 18:08:47
+2/11/30 04:09:13
  mdb
@@ -1341,24 +1341,595 @@
    %7B%0A    %7D%0A%0A
+    /**%0A     * Returns the combined hashcode of the two elements.%0A     */%0A    public int hashCode ()%0A    %7B%0A        return left %5E right;%0A    %7D%0A%0A    /**%0A     * A tuple is equal to another tuple if the left and right elements%0A     * are equal to the left and right elements (respectively) of the%0A     * other tuple.%0A     */%0A    public boolean equals (Object other)%0A    %7B%0A        if (other instanceof IntTuple) %7B%0A            IntTuple to = (IntTuple)other;%0A            return (left == to.left && right == to.right);%0A        %7D else %7B%0A            return false;%0A        %7D%0A    %7D%0A%0A
     public S

Implemented hashCode() and equals() appropriately.