Implement equals() with compareTo().

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5379 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2008-09-16 23:17:59 +00:00
parent 1c711f493d
commit 136af2a6b9
@@ -42,7 +42,7 @@ public /*abstract*/ class ChatChannel extends SimpleStreamableObject
// from interface Equalable
public function equals (other :Object) :Boolean
{
throw new Error("abstract");
return compareTo(other) == 0;
}
// from interface DSet_Entry