|
||||||||||
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.RefLong
public final class RefLong
Reference Long is the same as Long
but allows you to set the long without creating a new RefLong
.
Field Summary | |
---|---|
static long |
MAX_VALUE
The largest value of type long. |
static long |
MIN_VALUE
The smallest value of type long. |
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 | |
---|---|
RefLong()
Create a new RefLong set to the default of 0L. |
|
RefLong(long value)
Create a new RefLong using a long primitive. |
|
RefLong(java.lang.Long value)
Create a new RefLong using a Long . |
|
RefLong(long value,
boolean fixed)
Create a new RefLong using a long primitive. |
|
RefLong(java.lang.Long value,
boolean fixed)
Create a new RefLong using a Long . |
Method Summary | |
---|---|
RefLong |
clone()
Create a clone of the current object. |
RefNumber |
cloneNumber()
Create a clone of the current object. |
double |
doubleValue()
Returns the value of this RefLong as a double. |
float |
floatValue()
Returns the value of this RefLong as a float. |
int |
hashCode()
Returns a hash code for this RefLong object. |
long |
longValue()
Returns Returns the value of this RefLong as an long. |
static long |
parseLong(java.lang.String s)
Parses the string argument as a signed decimal long. |
static long |
parseLong(java.lang.String s,
int radix)
Parses the string argument as a signed long in the radix specified by the second argument. |
RefLong |
setValue(long value)
Set the value of this RefLong object with a long primitive. |
RefLong |
setValue(java.lang.Long value)
Set the value of this RefLong object with a Long . |
java.lang.String |
toString()
Returns a String object representing this RefLong 's value. |
static java.lang.String |
toString(long i)
Returns a new String object representing the specified integer. |
static java.lang.String |
toString(long i,
int radix)
Creates a string representation of the first argument in the radix specified by the second argument. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final long MAX_VALUE
public static final long MIN_VALUE
Constructor Detail |
---|
public RefLong()
RefLong
set to the default of 0L.
public RefLong(long value)
RefLong
using a long primitive.
value
- The long primitive to set this RefLong
with.public RefLong(long value, boolean fixed)
RefLong
using a long primitive.
value
- The long primitive to set this RefLong
with.fixed
- If this item is read only and cannot be modified.public RefLong(java.lang.Long value)
RefLong
using a Long
.
value
- The Long
to set this RefLong
with.public RefLong(java.lang.Long value, boolean fixed)
RefLong
using a Long
.
value
- The Long
to set this RefLong
with.fixed
- If this item is read only and cannot be modified.Method Detail |
---|
public long longValue()
RefLong
as an long.
public RefLong setValue(long value)
RefLong
object with a long primitive.
value
- The primitive long value to set this object.
public RefLong setValue(java.lang.Long value)
RefLong
object with a Long
.
value
- The Long
value to set this object.
public int hashCode()
RefLong
object.
hashCode
in class java.lang.Object
public java.lang.String toString()
String
object representing this RefLong
's value.
toString
in class java.lang.Object
public double doubleValue()
RefLong
as a double.
public float floatValue()
RefLong
as a float.
public static long parseLong(java.lang.String s)
s
- A string.
java.lang.NumberFormatException
- If the string does not contain a parsable long.public static long parseLong(java.lang.String s, int radix)
s
- The String
containing the long.radix
- The radix to be used.
java.lang.NumberFormatException
- If the string does not contain a parsable integer.public static java.lang.String toString(long i)
String
object representing the specified integer.
i
- A long to be converted.
public static java.lang.String toString(long i, int radix)
i
- A long.radix
- The radix.
public RefLong clone()
RefLong
.public RefNumber cloneNumber()
cloneNumber
in class RefNumber
RefLong
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |