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:
Ray Greenwell
2006-07-24 19:53:24 +00:00
parent fb532c1349
commit ed1f43bdfc
15 changed files with 107 additions and 50 deletions
+9 -3
View File
@@ -4,7 +4,7 @@ package com.threerings.util {
* Equivalent to java.lang.Byte.
*/
public class Byte
implements Equalable
implements Equalable, Wrapped
{
public var value :int;
@@ -18,13 +18,19 @@ public class Byte
this.value = value;
}
// documentation inherited from interface Equalable
// from Equalable
public function equals (other :Object) :Boolean
{
return (other is Byte) && (value === (other as Byte).value);
}
// documentation inherited
// from Wrapped
public function unwrap () :Object
{
return value;
}
// override
public function toString () :String
{
return "Byte(" + value + ")";