Long.hx 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. package java.lang;
  2. @:forward abstract Long(LongClass) from LongClass to LongClass
  3. {
  4. @:to @:extern inline public function toLong():haxe.Int64
  5. return this.longValue();
  6. @:from @:extern inline public static function fromLong(b:haxe.Int64):Long
  7. return LongClass.valueOf(b);
  8. }
  9. @:native("java.lang.Long") extern class LongClass extends Number implements Comparable<Long>
  10. {
  11. @:overload @:throws("java.lang.NumberFormatException") function new(param1 : String) : Void;
  12. @:overload function new(param1 : haxe.Int64) : Void;
  13. @:overload function compareTo(param1 : Dynamic) : Int;
  14. @:overload function compareTo(param1 : Long) : Int;
  15. @:overload function equals(param1 : Dynamic) : Bool;
  16. @:overload function hashCode() : Int;
  17. @:overload function toString() : String;
  18. @:final static var MAX_VALUE(default,null) : haxe.Int64;
  19. @:final static var MIN_VALUE(default,null) : haxe.Int64;
  20. @:final static var SIZE(default,null) : Int;
  21. @:final static var TYPE : Class<Long>;
  22. @:overload static function bitCount(param1 : haxe.Int64) : Int;
  23. @:overload static function compare(param1 : haxe.Int64, param2 : haxe.Int64) : Int;
  24. @:overload @:throws("java.lang.NumberFormatException") static function decode(param1 : String) : Long;
  25. @:overload static function getLong(param1 : String, param2 : Long) : Long;
  26. @:overload static function getLong(param1 : String) : Long;
  27. @:overload static function getLong(param1 : String, param2 : haxe.Int64) : Long;
  28. @:overload static function highestOneBit(param1 : haxe.Int64) : haxe.Int64;
  29. @:overload static function lowestOneBit(param1 : haxe.Int64) : haxe.Int64;
  30. @:overload static function numberOfLeadingZeros(param1 : haxe.Int64) : Int;
  31. @:overload static function numberOfTrailingZeros(param1 : haxe.Int64) : Int;
  32. @:overload @:throws("java.lang.NumberFormatException") static function parseLong(param1 : String) : haxe.Int64;
  33. @:overload @:throws("java.lang.NumberFormatException") static function parseLong(param1 : String, param2 : Int) : haxe.Int64;
  34. @:overload static function reverse(param1 : haxe.Int64) : haxe.Int64;
  35. @:overload static function reverseBytes(param1 : haxe.Int64) : haxe.Int64;
  36. @:overload static function rotateLeft(param1 : haxe.Int64, param2 : Int) : haxe.Int64;
  37. @:overload static function rotateRight(param1 : haxe.Int64, param2 : Int) : haxe.Int64;
  38. @:overload static function signum(param1 : haxe.Int64) : Int;
  39. @:overload static function toBinaryString(param1 : haxe.Int64) : String;
  40. @:overload static function toHexString(param1 : haxe.Int64) : String;
  41. @:overload static function toOctalString(param1 : haxe.Int64) : String;
  42. @:native("toString") @:overload static function _toString(param1 : haxe.Int64) : String;
  43. @:native("toString") @:overload static function _toString(param1 : haxe.Int64, param2 : Int) : String;
  44. @:overload static function valueOf(param1 : haxe.Int64) : Long;
  45. @:overload @:throws("java.lang.NumberFormatException") static function valueOf(param1 : String, param2 : Int) : Long;
  46. @:overload @:throws("java.lang.NumberFormatException") static function valueOf(param1 : String) : Long;
  47. }