|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrebuild.util.ref.RefNumber
rebuild.util.ref.RefULong
public final class RefULong
Reference ULong is the same as Long
but is unsigned and allows you to set the long without creating a new Long
.
Field Summary | |
---|---|
static RefULong |
MAX_VALUE
The maximum value a RefULong can have. |
static long |
MAX_VALUE_LONG
The maximum value a RefULong can have. |
static RefULong |
MIN_VALUE
The minimum value a RefULong can have. |
static long |
MIN_VALUE_LONG
The minimum value a RefULong can have. |
Fields inherited from class rebuild.util.ref.RefNumber |
---|
_fixed, BIT_SHIFT_LEFT, BIT_SHIFT_LEFT_LOGICAL, BIT_SHIFT_RIGHT, BIT_SHIFT_RIGHT_LOGICAL |
Constructor Summary | |
---|---|
RefULong()
Create a new RefULong set to the default of 0. |
|
RefULong(long value)
Create a new RefULong using a long primitive. |
|
RefULong(long value,
boolean fixed)
Create a new RefULong using a long primitive. |
Method Summary | |
---|---|
RefULong |
clone()
Create a clone of the current object. |
RefNumber |
cloneNumber()
Create a clone of the current object. |
int |
hashCode()
Returns a hash code for this RefULong object. |
long |
longValue()
Returns The value of this RefULong object as a long primitive. |
static RefULong |
parseULong(java.lang.String s)
Assuming the specified String represents a long, returns that long's value. |
static RefULong |
parseULong(java.lang.String s,
int radix)
Assuming the specified String represents a long, returns that long's value. |
boolean |
raw_highBitValue()
Returns if the high order bit of the ulong is set. |
long |
raw_ulongValue()
Returns The value of this RefULong object as a long primitive. |
RefULong |
setValue(long value)
Set the value of this RefULong object with a long primitive. |
RefULong |
setValue(java.lang.Long value)
Set the value of this RefULong object with a Long . |
java.lang.String |
toString()
Returns a String object representing this RefULong 's value. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final long MAX_VALUE_LONG
RefULong
can have. This is stored as a signed number for simplicity.
public static final long MIN_VALUE_LONG
RefULong
can have. This is stored as a signed number for simplicity.
public static final RefULong MAX_VALUE
RefULong
can have.
public static final RefULong MIN_VALUE
RefULong
can have.
Constructor Detail |
---|
public RefULong()
RefULong
set to the default of 0.
public RefULong(long value)
RefULong
using a long primitive.
value
- The long primitive to set this RefULong
with.public RefULong(long value, boolean fixed)
RefULong
using a long primitive.
value
- The long primitive to set this RefULong
with.fixed
- If this item is read only and cannot be modified.Method Detail |
---|
public long longValue()
RefULong
object as a long primitive.
public long raw_ulongValue()
RefULong
object as a long primitive. It does not contain the high order bit.
public boolean raw_highBitValue()
true
if the high order bit is set, false
otherwise.public RefULong setValue(long value)
RefULong
object with a long primitive.
value
- The primitive long value to set this object.
public RefULong setValue(java.lang.Long value)
RefULong
object with a Long
.
value
- The Long
value to set this object.
public int hashCode()
RefULong
object.
hashCode
in class java.lang.Object
public java.lang.String toString()
String
object representing this RefULong
's value.
toString
in class java.lang.Object
public static RefULong parseULong(java.lang.String s)
String
represents a long, returns that long's value.
s
- The String
containing the long.
java.lang.NumberFormatException
- If the string does not contain a parsable long.public static RefULong parseULong(java.lang.String s, int radix)
String
represents a long, returns that long's value.
s
- The String
containing the long.radix
- The radix to be used.
java.lang.NumberFormatException
- If the string does not contain a parsable long.public RefULong clone()
RefULong
.public RefNumber cloneNumber()
cloneNumber
in class RefNumber
RefULong
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |