inua.eio
Class ULong
java.lang.Object
inua.eio.ULong
public class ULong
- extends Object
Class for doing operations on Java long values as if they were
unsigned. If you know Fortran, you're all set with the method names
:).
Field Summary |
private static long |
BIAS
|
static long |
MAX_VALUE
Maximum value of an unsigned long, which would be written
0xffffffffffffffffL if Java syntax allowed that. |
Constructor Summary |
ULong()
|
Method Summary |
static long |
castByte(byte b)
|
static long |
castChar(char c)
|
static long |
castInt(int i)
|
static int |
compare(long x1,
long x2)
|
static boolean |
EQ(long x1,
long x2)
|
static boolean |
GE(long x1,
long x2)
|
static boolean |
GT(long x1,
long x2)
|
static boolean |
LE(long x1,
long x2)
|
static boolean |
LT(long x1,
long x2)
|
static boolean |
NE(long x1,
long x2)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_VALUE
public static final long MAX_VALUE
- Maximum value of an unsigned long, which would be written
0xffffffffffffffffL if Java syntax allowed that.
- See Also:
- Constant Field Values
BIAS
private static final long BIAS
- See Also:
- Constant Field Values
ULong
public ULong()
EQ
public static final boolean EQ(long x1,
long x2)
NE
public static final boolean NE(long x1,
long x2)
LT
public static final boolean LT(long x1,
long x2)
compare
public static final int compare(long x1,
long x2)
LE
public static final boolean LE(long x1,
long x2)
GT
public static final boolean GT(long x1,
long x2)
GE
public static final boolean GE(long x1,
long x2)
castChar
public static final long castChar(char c)
castByte
public static final long castByte(byte b)
castInt
public static final long castInt(int i)