Files
narya/src/as/com/threerings/util/Short.as
T
Ray Greenwell 459f12ded5 Copy Java's valueOf factory method for primitive wrapper classes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4217 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-06-24 23:03:07 +00:00

28 lines
519 B
ActionScript

package com.threerings.util {
/**
* Equivalent to java.lang.Short.
*/
public class Short
implements Equalable
{
public var value :int;
public static function valueOf (val :int) :Short
{
return new Short(val);
}
public function Short (value :int)
{
this.value = value;
}
// documentation inherited from interface Equalable
public function equals (other :Object) :Boolean
{
return (other is Short) && (value === (other as Short).value);
}
}
}