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
This commit is contained in:
@@ -8,6 +8,11 @@ public class Short
|
||||
{
|
||||
public var value :int;
|
||||
|
||||
public static function valueOf (val :int) :Short
|
||||
{
|
||||
return new Short(val);
|
||||
}
|
||||
|
||||
public function Short (value :int)
|
||||
{
|
||||
this.value = value;
|
||||
|
||||
Reference in New Issue
Block a user