public class Byte extends Object
Modifier and Type | Field and Description |
---|---|
static byte |
MAX_VALUE
A constant holding the maximum value a byte can have.
|
static byte |
MIN_VALUE
A constant holding the minimum value a byte can have.
|
Constructor and Description |
---|
Byte(byte value)
Initializes this object with the specified byte value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object)
Compares this object to the specified object.
|
int |
hashCode()
Returns a hash code for this object.
|
boolean |
isEven()
Checks whether this object represents an even value.
|
String |
toString()
Returns a new String object representing this object.
|
public static final byte MIN_VALUE
public static final byte MAX_VALUE
public Byte(byte value)
value
- the value to be represented by this object.public boolean isEven()
public int hashCode()
public boolean equals(Object object)