|
||||||||||
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.RefUShort
public final class RefUShort
Reference UShort is the same as Short
but is unsigned and allows you to set the short without creating a new Short
.
Field Summary | |
---|---|
static RefUShort |
MAX_VALUE
The maximum value a RefUShort can have. |
static short |
MAX_VALUE_SHORT
The maximum value a RefUShort can have. |
static RefUShort |
MIN_VALUE
The minimum value a RefUShort can have. |
static short |
MIN_VALUE_SHORT
The minimum value a RefUShort 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 | |
---|---|
RefUShort()
Create a new RefUShort set to the default of 0. |
|
RefUShort(short value)
Create a new RefUShort using a short primitive. |
|
RefUShort(short value,
boolean fixed)
Create a new RefUShort using a short primitive. |
Method Summary | |
---|---|
RefUShort |
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 RefUShort object. |
static RefUShort |
parseUShort(java.lang.String s)
Assuming the specified String represents a short, returns that short's value. |
static RefUShort |
parseUShort(java.lang.String s,
int radix)
Assuming the specified String represents a short, returns that short's value. |
RefUShort |
setValue(short value)
Set the value of this RefUShort object with a short primitive. |
RefUShort |
setValue(java.lang.Short value)
Set the value of this RefUShort object with a Short . |
short |
shortValue()
Returns The value of this RefUShort object as a short primitive. |
java.lang.String |
toString()
Returns a String object representing this RefUShort 's value. |
int |
ushortValue()
Returns The value of this RefUShort object as a int primitive. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final short MAX_VALUE_SHORT
RefUShort
can have. This is stored as a signed number for simplicity.
public static final short MIN_VALUE_SHORT
RefUShort
can have. This is stored as a signed number for simplicity.
public static final RefUShort MAX_VALUE
RefUShort
can have.
public static final RefUShort MIN_VALUE
RefUShort
can have.
Constructor Detail |
---|
public RefUShort()
RefUShort
set to the default of 0.
public RefUShort(short value)
RefUShort
using a short primitive.
value
- The short primitive to set this RefUShort
with.public RefUShort(short value, boolean fixed)
RefUShort
using a short primitive.
value
- The short primitive to set this RefUShort
with.fixed
- If this item is read only and cannot be modified.Method Detail |
---|
public short shortValue()
RefUShort
object as a short primitive.
public int ushortValue()
RefUShort
object as a int primitive.
public RefUShort setValue(short value)
RefUShort
object with a short primitive.
value
- The primitive short value to set this object.
public RefUShort setValue(java.lang.Short value)
RefUShort
object with a Short
.
value
- The Short
value to set this object.
public int hashCode()
RefUShort
object.
hashCode
in class java.lang.Object
public java.lang.String toString()
String
object representing this RefUShort
's value.
toString
in class java.lang.Object
public static RefUShort parseUShort(java.lang.String s)
String
represents a short, returns that short's value.
s
- The String
containing the short.
java.lang.NumberFormatException
- If the string does not contain a parsable short.public static RefUShort parseUShort(java.lang.String s, int radix)
String
represents a short, returns that short's value.
s
- The String
containing the short.radix
- The radix to be used.
java.lang.NumberFormatException
- If the string does not contain a parsable short.public RefUShort clone()
RefUShort
.public RefNumber cloneNumber()
cloneNumber
in class RefNumber
RefUShort
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |