/**@class java.lang.Long implements java.lang.Comparable @extends java.lang.Number The wrapper for the primitive type {@code long}. <p> Implementation note: The "bit twiddling" methods in this class use techniques described in <a href="http://www.hackersdelight.org/">Henry S. Warren, Jr.'s Hacker's Delight, (Addison Wesley, 2002)</a> and <a href= "http://graphics.stanford.edu/~seander/bithacks.html">Sean Anderson's Bit Twiddling Hacks.</a> @see java.lang.Integer @since 1.0 */ var Long = { /** Constant for the maximum {@code long} value, 2<sup>63</sup>-1. */ MAX_VALUE : "9223372036854775807", /** Constant for the minimum {@code long} value, -2<sup>63</sup>. */ MIN_VALUE : "-9223372036854775808", /** The {@link java.lang.Class} object that represents the primitive type {@code long}. */ TYPE : "null", /** Constant for the number of bits needed to represent a {@code long} in two's complement form. @since 1.5 */ SIZE : "64", /** */ byteValue : function( ) {}, /**Compares this object to the specified long object to determine their relative order. @param {Number} object the long object to compare this object to. @return {Number} a negative value if the value of this long is less than the value of {@code object}; 0 if the value of this long and the value of {@code object} are equal; a positive value if the value of this long is greater than the value of {@code object}. @see java.lang.Comparable @since 1.2 */ compareTo : function( ) {}, /**Compares two {@code long} values. @return {Number} 0 if lhs = rhs, less than 0 if lhs < rhs, and greater than 0 if lhs > rhs. @since 1.7 */ compare : function( ) {}, /**Parses the specified string and returns a {@code Long} instance if the string can be decoded into a long value. The string may be an optional optional sign character ("-" or "+") followed by a hexadecimal ("0x..." or "#..."), octal ("0..."), or decimal ("...") representation of a long. @param {String} string a string representation of a long value. @return {Number} a {@code Long} containing the value represented by {@code string}. @throws NumberFormatException if {@code string} cannot be parsed as a long value. */ decode : function( ) {}, /** */ doubleValue : function( ) {}, /**Compares this instance with the specified object and indicates if they are equal. In order to be equal, {@code o} must be an instance of {@code Long} and have the same long value as this object. @param {Object {Object}} o the object to compare this long with. @return {Boolean} {@code true} if the specified object is equal to this {@code Long}; {@code false} otherwise. */ equals : function( ) {}, /** */ floatValue : function( ) {}, /**Returns the {@code Long} value of the system property identified by {@code string}. Returns {@code null} if {@code string} is {@code null} or empty, if the property can not be found or if its value can not be parsed as a long. @param {String} string the name of the requested system property. @return {Number} the requested property's value as a {@code Long} or {@code null}. */ getLong : function( ) {}, /**Returns the {@code Long} value of the system property identified by {@code string}. Returns the specified default value if {@code string} is {@code null} or empty, if the property can not be found or if its value can not be parsed as a long. @param {String} string the name of the requested system property. @param {Number} defaultValue the default value that is returned if there is no long system property with the requested name. @return {Number} the requested property's value as a {@code Long} or the default value. */ getLong : function( ) {}, /**Returns the {@code Long} value of the system property identified by {@code string}. Returns the specified default value if {@code string} is {@code null} or empty, if the property can not be found or if its value can not be parsed as a long. @param {String} string the name of the requested system property. @param {Number} defaultValue the default value that is returned if there is no long system property with the requested name. @return {Number} the requested property's value as a {@code Long} or the default value. */ getLong : function( ) {}, /** */ hashCode : function( ) {}, /** */ intValue : function( ) {}, /**Gets the primitive value of this long. @return {Number} this object's primitive value. */ longValue : function( ) {}, /**Parses the specified string as a signed decimal long value. The ASCII characters - ('-') and + ('+') are recognized as the minus and plus signs. @param {String} string the string representation of a long value. @return {Number} the primitive long value represented by {@code string}. @throws NumberFormatException if {@code string} cannot be parsed as a long value. */ parseLong : function( ) {}, /**Parses the specified string as a signed long value using the specified radix. The ASCII characters - ('-') and + ('+') are recognized as the minus and plus signs. @param {String} string the string representation of a long value. @param {Number} radix the radix to use when parsing. @return {Number} the primitive long value represented by {@code string} using {@code radix}. @throws NumberFormatException if {@code string} cannot be parsed as a long value, or {@code radix < Character.MIN_RADIX || radix > Character.MAX_RADIX}. */ parseLong : function( ) {}, /**Equivalent to {@code parsePositiveLong(string, 10)}. @see #parsePositiveLong(String, int) @hide */ parsePositiveLong : function( ) {}, /**Parses the specified string as a positive long value using the specified radix. 0 is considered a positive long. <p> This method behaves the same as {@link #parseLong(String, int)} except that it disallows leading '+' and '-' characters. See that method for error conditions. @see #parseLong(String, int) @hide */ parsePositiveLong : function( ) {}, /** */ shortValue : function( ) {}, /**Converts the specified long value into its binary string representation. The returned string is a concatenation of '0' and '1' characters. @param {Number} v the long value to convert. @return {String} the binary string representation of {@code v}. */ toBinaryString : function( ) {}, /**Converts the specified long value into its hexadecimal string representation. The returned string is a concatenation of characters from '0' to '9' and 'a' to 'f'. @param {Number} v the long value to convert. @return {String} the hexadecimal string representation of {@code l}. */ toHexString : function( ) {}, /**Converts the specified long value into its octal string representation. The returned string is a concatenation of characters from '0' to '7'. @param {Number} v the long value to convert. @return {String} the octal string representation of {@code l}. */ toOctalString : function( ) {}, /** */ toString : function( ) {}, /**Converts the specified long value into its decimal string representation. The returned string is a concatenation of a minus sign if the number is negative and characters from '0' to '9'. @param {Number} n the long to convert. @return {String} the decimal string representation of {@code l}. */ toString : function( ) {}, /**Converts the specified signed long value into a string representation based on the specified radix. The returned string is a concatenation of a minus sign if the number is negative and characters from '0' to '9' and 'a' to 'z', depending on the radix. If {@code radix} is not in the interval defined by {@code Character.MIN_RADIX} and {@code Character.MAX_RADIX} then 10 is used as the base for the conversion. <p>This method treats its argument as signed. If you want to convert an unsigned value to one of the common non-decimal bases, you may find {@link #toBinaryString}, {@code #toHexString}, or {@link #toOctalString} more convenient. @param {Number} v the signed long to convert. @param {Number} radix the base to use for the conversion. @return {String} the string representation of {@code v}. */ toString : function( ) {}, /**Parses the specified string as a signed decimal long value. @param {String} string the string representation of a long value. @return {Number} a {@code Long} instance containing the long value represented by {@code string}. @throws NumberFormatException if {@code string} cannot be parsed as a long value. @see #parseLong(String) */ valueOf : function( ) {}, /**Parses the specified string as a signed long value using the specified radix. @param {String} string the string representation of a long value. @param {Number} radix the radix to use when parsing. @return {Number} a {@code Long} instance containing the long value represented by {@code string} using {@code radix}. @throws NumberFormatException if {@code string} cannot be parsed as a long value, or {@code radix < Character.MIN_RADIX || radix > Character.MAX_RADIX}. @see #parseLong(String, int) */ valueOf : function( ) {}, /**Determines the highest (leftmost) bit of the specified long value that is 1 and returns the bit mask value for that bit. This is also referred to as the Most Significant 1 Bit. Returns zero if the specified long is zero. @param {Number} v the long to examine. @return {Number} the bit mask indicating the highest 1 bit in {@code v}. @since 1.5 */ highestOneBit : function( ) {}, /**Determines the lowest (rightmost) bit of the specified long value that is 1 and returns the bit mask value for that bit. This is also referred to as the Least Significant 1 Bit. Returns zero if the specified long is zero. @param {Number} v the long to examine. @return {Number} the bit mask indicating the lowest 1 bit in {@code v}. @since 1.5 */ lowestOneBit : function( ) {}, /**Determines the number of leading zeros in the specified long value prior to the {@link #highestOneBit(long) highest one bit}. @param {Number} v the long to examine. @return {Number} the number of leading zeros in {@code v}. @since 1.5 */ numberOfLeadingZeros : function( ) {}, /**Determines the number of trailing zeros in the specified long value after the {@link #lowestOneBit(long) lowest one bit}. @param {Number} v the long to examine. @return {Number} the number of trailing zeros in {@code v}. @since 1.5 */ numberOfTrailingZeros : function( ) {}, /**Counts the number of 1 bits in the specified long value; this is also referred to as population count. @param {Number} v the long to examine. @return {Number} the number of 1 bits in {@code v}. @since 1.5 */ bitCount : function( ) {}, /**Rotates the bits of the specified long value to the left by the specified number of bits. @param {Number} v the long value to rotate left. @param {Number} distance the number of bits to rotate. @return {Number} the rotated value. @since 1.5 */ rotateLeft : function( ) {}, /**Rotates the bits of the specified long value to the right by the specified number of bits. @param {Number} v the long value to rotate right. @param {Number} distance the number of bits to rotate. @return {Number} the rotated value. @since 1.5 */ rotateRight : function( ) {}, /**Reverses the order of the bytes of the specified long value. @param {Number} v the long value for which to reverse the byte order. @return {Number} the reversed value. @since 1.5 */ reverseBytes : function( ) {}, /**Reverses the order of the bits of the specified long value. @param {Number} v the long value for which to reverse the bit order. @return {Number} the reversed value. @since 1.5 */ reverse : function( ) {}, /**Returns the value of the {@code signum} function for the specified long value. @param {Number} v the long value to check. @return {Number} -1 if {@code v} is negative, 1 if {@code v} is positive, 0 if {@code v} is zero. @since 1.5 */ signum : function( ) {}, /**Returns a {@code Long} instance for the specified long value. <p> If it is not necessary to get a new {@code Long} instance, it is recommended to use this method instead of the constructor, since it maintains a cache of instances which may result in better performance. @param {Number} v the long value to store in the instance. @return {Number} a {@code Long} instance containing {@code v}. @since 1.5 */ valueOf : function( ) {}, };