public final class MutableByte extends java.lang.Number implements java.lang.Comparable<MutableByte>, java.lang.Cloneable
byte wrapper.| Modifier and Type | Field and Description |
|---|---|
byte |
value
The mutable value.
|
| Constructor and Description |
|---|
MutableByte() |
MutableByte(byte value) |
MutableByte(java.lang.Number number) |
MutableByte(java.lang.String value) |
| Modifier and Type | Method and Description |
|---|---|
MutableByte |
clone()
Clones object.
|
int |
compareTo(MutableByte other)
Compares value of two same instances.
|
double |
doubleValue()
Returns the value as a double.
|
boolean |
equals(java.lang.Object obj)
Compares this object to the specified object.
|
float |
floatValue()
Returns the value as a float.
|
byte |
get()
Returns mutable value.
|
int |
hashCode()
Returns a hashcode for this value.
|
int |
intValue()
Returns the value as a int.
|
long |
longValue()
Returns the value as a long.
|
static MutableByte |
of(byte value) |
void |
set(byte value)
Sets mutable value.
|
void |
set(java.lang.Number value)
Sets mutable value from a Number.
|
java.lang.String |
toString()
Stringify the value.
|
public MutableByte()
public MutableByte(byte value)
public MutableByte(java.lang.String value)
public MutableByte(java.lang.Number number)
public static MutableByte of(byte value)
public byte get()
public void set(byte value)
public void set(java.lang.Number value)
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to compare with.true if the objects are the same;
false otherwise.public int intValue()
intValue in class java.lang.Numberpublic long longValue()
longValue in class java.lang.Numberpublic float floatValue()
floatValue in class java.lang.Numberpublic double doubleValue()
doubleValue in class java.lang.Numberpublic int compareTo(MutableByte other)
compareTo in interface java.lang.Comparable<MutableByte>public MutableByte clone()
clone in class java.lang.ObjectCopyright © 2003-present Jodd Team