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:
Ray Greenwell
2006-06-24 23:03:07 +00:00
parent 2382fb5cd6
commit 459f12ded5
8 changed files with 28 additions and 3 deletions
+5
View File
@@ -9,6 +9,11 @@ public class Long
public var high :int;
public var low :int;
public static function valueOf (low :int, high :int = 0) :Long
{
return new Long(low, high);
}
public function Long (low :int, high :int = 0)
{
this.low = low;