Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://www.aoindustries.com/contact
public class LongLong extends Number implements Comparable<LongLong>
java.lang.Long implementation.| Modifier and Type | Field and Description |
|---|---|
static LongLong |
MAX_VALUE |
static LongLong |
MIN_VALUE |
static int |
SIZE |
| Constructor and Description |
|---|
LongLong(long hi,
long lo) |
LongLong(String s) |
| Modifier and Type | Method and Description |
|---|---|
int |
bitCount() |
byte |
byteValue() |
int |
compareTo(LongLong other) |
int |
compareToUnsigned(LongLong other) |
static int |
compareUnsigned(long value1,
long value2)
Compares two longs as unsigned.
|
double |
doubleValue() |
boolean |
equals(Object O) |
float |
floatValue() |
long |
getHigh()
Gets the high-order long.
|
long |
getLow()
Gets the low-order long.
|
int |
hashCode() |
LongLong |
highestOneBit() |
int |
intValue() |
long |
longValue() |
LongLong |
lowestOneBit() |
LongLong |
negate() |
int |
numberOfLeadingZeros() |
int |
numberOfTrailingZeros() |
static LongLong |
parseLongLong(String s) |
static LongLong |
parseLongLong(String s,
int radix) |
LongLong |
reverse() |
LongLong |
reverseBytes() |
LongLong |
rotateLeft(int distance)
TODO: test this.
|
LongLong |
rotateRight(int distance)
TODO: test this.
|
short |
shortValue() |
int |
signum() |
String |
toString() |
static LongLong |
valueOf(long hi,
long lo) |
static LongLong |
valueOf(String s) |
static LongLong |
valueOf(String s,
int radix) |
public static final LongLong MIN_VALUE
public static final LongLong MAX_VALUE
public static final int SIZE
public LongLong(long hi,
long lo)
public LongLong(String s) throws NumberFormatException
NumberFormatExceptionpublic static LongLong parseLongLong(String s, int radix) throws NumberFormatException
NumberFormatExceptionpublic static LongLong parseLongLong(String s) throws NumberFormatException
NumberFormatExceptionpublic static LongLong valueOf(String s, int radix) throws NumberFormatException
NumberFormatExceptionparseLongLong(java.lang.String, int)public static LongLong valueOf(String s) throws NumberFormatException
NumberFormatExceptionparseLongLong(java.lang.String, int)public static LongLong valueOf(long hi, long lo)
public short shortValue()
shortValue in class Numberpublic float floatValue()
floatValue in class Numberpublic double doubleValue()
doubleValue in class Numberpublic static int compareUnsigned(long value1,
long value2)
public int compareTo(LongLong other)
compareTo in interface Comparable<LongLong>public int compareToUnsigned(LongLong other)
public LongLong highestOneBit()
public LongLong lowestOneBit()
public int numberOfLeadingZeros()
public int numberOfTrailingZeros()
public int bitCount()
public LongLong rotateLeft(int distance)
public LongLong rotateRight(int distance)
public LongLong reverse()
public int signum()
public LongLong reverseBytes()
public LongLong negate()
public long getHigh()
public long getLow()
Copyright © 2000–2016 AO Industries, Inc.. All rights reserved.