|
||||||||||
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.RefShort
public final class RefShort
Reference Short is the same as Short
but allows you to set the short without creating a new RefShort
.
Field Summary | |
---|---|
static short |
MAX_VALUE
The largest value of type short. |
static short |
MIN_VALUE
The smallest value of type short. |
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 | |
---|---|
RefShort()
Create a new RefShort set to the default of 0. |
|
RefShort(short value)
Create a new RefShort using a short primitive. |
|
RefShort(java.lang.Short value)
Create a new RefShort using a Short . |
|
RefShort(short value,
boolean fixed)
Create a new RefShort using a short primitive. |
|
RefShort(java.lang.Short value,
boolean fixed)
Create a new RefShort using a Short . |
Method Summary | |
---|---|
RefShort |
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 RefShort object. |
static short |
parseShort(java.lang.String s)
Assuming the specified String represents a short, returns that short's value. |
static short |
parseShort(java.lang.String s,
int radix)
Assuming the specified String represents a short, returns that short's value. |
RefShort |
setValue(short value)
Set the value of this RefShort object with a short primitive. |
RefShort |
setValue(java.lang.Short value)
Set the value of this RefShort object with a Short . |
short |
shortValue()
Returns Returns the value of this RefShort as an short. |
java.lang.String |
toString()
Returns a String object representing this RefShort 's value. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final short MAX_VALUE
public static final short MIN_VALUE
Constructor Detail |
---|
public RefShort()
RefShort
set to the default of 0.
public RefShort(short value)
RefShort
using a short primitive.
value
- The short primitive to set this RefShort
with.public RefShort(short value, boolean fixed)
RefShort
using a short primitive.
value
- The short primitive to set this RefShort
with.fixed
- If this item is read only and cannot be modified.public RefShort(java.lang.Short value)
RefShort
using a Short
.
value
- The Short
to set this RefShort
with.public RefShort(java.lang.Short value, boolean fixed)
RefShort
using a Short
.
value
- The Short
to set this RefShort
with.fixed
- If this item is read only and cannot be modified.Method Detail |
---|
public short shortValue()
RefShort
as an short.
public RefShort setValue(short value)
RefShort
object with a short primitive.
value
- The primitive short value to set this object.
public RefShort setValue(java.lang.Short value)
RefShort
object with a Short
.
value
- The Short
value to set this object.
public int hashCode()
RefShort
object.
hashCode
in class java.lang.Object
public java.lang.String toString()
String
object representing this RefShort
's value.
toString
in class java.lang.Object
public static short parseShort(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 short parseShort(java.lang.String s, int radix)
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 RefShort clone()
RefShort
.public RefNumber cloneNumber()
cloneNumber
in class RefNumber
RefShort
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |