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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user