Let's be a good key.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2279 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: Cluster.java,v 1.1 2003/02/13 21:55:22 mdb Exp $
|
||||
// $Id: Cluster.java,v 1.2 2003/02/13 23:01:35 mdb Exp $
|
||||
|
||||
package com.threerings.whirled.spot.data;
|
||||
|
||||
@@ -33,6 +33,22 @@ public class Cluster
|
||||
return _key;
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
public boolean equals (Object other)
|
||||
{
|
||||
if (other instanceof Cluster) {
|
||||
return ((Cluster)other).clusterOid == clusterOid;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
public int hashCode ()
|
||||
{
|
||||
return clusterOid;
|
||||
}
|
||||
|
||||
/** Used for {@link #geyKey}. */
|
||||
protected transient Integer _key;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user