Fixed up a number of TODOs; created a new Wrapped interface to simplify
auto-unwrapping. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4286 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -4,7 +4,7 @@ package com.threerings.util {
|
||||
* Equivalent to java.lang.Long.
|
||||
*/
|
||||
public class Long
|
||||
implements Equalable
|
||||
implements Equalable, Wrapped
|
||||
{
|
||||
public var high :int;
|
||||
public var low :int;
|
||||
@@ -20,7 +20,7 @@ public class Long
|
||||
this.high = high;
|
||||
}
|
||||
|
||||
// documentation inherited from interface Equalable
|
||||
// from Equalable
|
||||
public function equals (other :Object) :Boolean
|
||||
{
|
||||
if (!(other is Long)) {
|
||||
@@ -29,5 +29,11 @@ public class Long
|
||||
var that :Long = (other as Long);
|
||||
return (this.high == that.high) && (this.low == that.low);
|
||||
}
|
||||
|
||||
// from Wrapped
|
||||
public function unwrap () :Object
|
||||
{
|
||||
return low; // TODO
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user