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