All Implemented Interfaces:
Serializable, Comparable<Byte>, Constable

  • Field Summary

    Fields

    static final int

    The number of bytes used to represent a byte value in two's complement binary form.

    static final byte

    A constant holding the maximum value a byte can have, 27-1.

    static final byte

    A constant holding the minimum value a byte can have, -27.

    static final int

    The number of bits used to represent a byte value in two's complement binary form.

    The Class instance representing the primitive type byte.

  • Constructor Summary

    Constructors

  • Method Summary

    byte

    byteValue()

    Returns the value of this Byte as a byte.

    static int

    compare(byte x, byte y)

    Compares two byte values numerically.

    int

    compareTo(Byte anotherByte)

    Compares two Byte objects numerically.

    static int

    compareUnsigned(byte x, byte y)

    Compares two byte values numerically treating the values as unsigned.

    Decodes a String into a Byte.

    Returns an Optional containing the nominal descriptor for this instance.

    double

    Returns the value of this Byte as a double after a widening primitive conversion.

    boolean

    Compares this object to the specified object.

    float

    Returns the value of this Byte as a float after a widening primitive conversion.

    int

    hashCode()

    Returns a hash code for this Byte; equal to the result of invoking intValue().

    static int

    hashCode(byte value)

    Returns a hash code for a byte value; compatible with Byte.hashCode().

    int

    intValue()

    Returns the value of this Byte as an int after a widening primitive conversion.

    long

    longValue()

    Returns the value of this Byte as a long after a widening primitive conversion.

    static byte

    Parses the string argument as a signed decimal byte.

    static byte

    Parses the string argument as a signed byte in the radix specified by the second argument.

    short

    Returns the value of this Byte as a short after a widening primitive conversion.

    toString()

    Returns a String object representing this Byte's value.

    toString(byte b)

    Returns a new String object representing the specified byte.

    static int

    toUnsignedInt(byte x)

    Converts the argument to an int by an unsigned conversion.

    static long

    toUnsignedLong(byte x)

    Converts the argument to a long by an unsigned conversion.

    valueOf(byte b)

    Returns a Byte instance representing the specified byte value.

    Returns a Byte object holding the value given by the specified String.

    Returns a Byte object holding the value extracted from the specified String when parsed with the radix given by the second argument.

    Methods declared in class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Creates and returns a copy of this object.

    protected void

    Deprecated, for removal: This API element is subject to removal in a future version.

    Returns the runtime class of this Object.

    final void

    Wakes up a single thread that is waiting on this object's monitor.

    final void

    Wakes up all threads that are waiting on this object's monitor.

    final void

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

    final void

    wait(long timeoutMillis)

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

    final void

    wait(long timeoutMillis, int nanos)

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

  • Field Details

    • MIN_VALUE

    • MAX_VALUE

    • TYPE

    • SIZE

    • BYTES

  • Constructor Details

    • Byte

    • Byte

  • Method Details

    • toString

    • describeConstable

    • valueOf

    • parseByte

    • parseByte

    • valueOf

    • valueOf

    • decode

    • byteValue

    • shortValue

    • intValue

    • longValue

    • floatValue

    • doubleValue

    • toString

    • hashCode

    • hashCode

    • equals

    • compareTo

    • compare

    • compareUnsigned

    • toUnsignedInt

    • toUnsignedLong