Java java.lang Byte fields, constructors, methods, implement or subclass

Example usage for Java java.lang Byte fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.lang Byte.

The text is from its open source code.

Field

byteMIN_VALUE
A constant holding the minimum value a byte can have, -27.
byteMAX_VALUE
A constant holding the maximum value a byte can have, 27-1.
ClassTYPE
The Class instance representing the primitive type byte .
intSIZE
The number of bits used to represent a byte value in two's complement binary form.
intBYTES
The number of bytes used to represent a byte value in two's complement binary form.

Constructor

Byte(byte value)
Constructs a newly allocated Byte object that represents the specified byte value.
Byte(String s)
Constructs a newly allocated Byte object that represents the byte value indicated by the String parameter.

Method

bytebyteValue()
Returns the value of this Byte as a byte .
intcompare(byte x, byte y)
Compares two byte values numerically.
intcompareTo(Byte anotherByte)
Compares two Byte objects numerically.
Bytedecode(String nm)
Decodes a String into a Byte .
doubledoubleValue()
Returns the value of this Byte as a double after a widening primitive conversion.
booleanequals(Object obj)
Compares this object to the specified object.
floatfloatValue()
Returns the value of this Byte as a float after a widening primitive conversion.
ClassgetClass()
Returns the runtime class of this Object .
inthashCode()
Returns a hash code for this Byte ; equal to the result of invoking intValue() .
inthashCode(byte value)
Returns a hash code for a byte value; compatible with Byte.hashCode() .
intintValue()
Returns the value of this Byte as an int after a widening primitive conversion.
longlongValue()
Returns the value of this Byte as a long after a widening primitive conversion.
byteparseByte(String s)
Parses the string argument as a signed decimal byte .
byteparseByte(String s, int radix)
Parses the string argument as a signed byte in the radix specified by the second argument.
shortshortValue()
Returns the value of this Byte as a short after a widening primitive conversion.
StringtoString()
Returns a String object representing this Byte 's value.
StringtoString(byte b)
Returns a new String object representing the specified byte .
inttoUnsignedInt(byte x)
Converts the argument to an int by an unsigned conversion.
longtoUnsignedLong(byte x)
Converts the argument to a long by an unsigned conversion.
BytevalueOf(byte b)
Returns a Byte instance representing the specified byte value.
BytevalueOf(String s)
Returns a Byte object holding the value given by the specified String .
BytevalueOf(String s, int radix)
Returns a Byte object holding the value extracted from the specified String when parsed with the radix given by the second argument.