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