Class UByte

    • Constructor Detail

      • UByte

        public UByte​(byte unsignedValue)
        Constructs a newly allocated UByte object that represent the specified unsigned byte value.
        Parameters:
        unsignedValue - the value to be represented by the UByte
    • Method Detail

      • intValue

        public int intValue()
        Specified by:
        intValue in class Number
      • longValue

        public long longValue()
        Specified by:
        longValue in class Number
      • floatValue

        public float floatValue()
        Specified by:
        floatValue in class Number
      • doubleValue

        public double doubleValue()
        Specified by:
        doubleValue in class Number
      • valueOf

        public static UByte valueOf​(byte unsignedValue)
        A wrapper for the given unsigned byte.
        Parameters:
        unsignedValue - an unsigned byte value
        Returns:
        a UByte instance representing unsignedValue
      • toString

        public static String toString​(byte unsignedValue)
        Returns a new String object representing the specified unsigned byte. The radix is assumed to be 10.
        Parameters:
        unsignedValue - the unsigned byte to be converted
        Returns:
        the string representation of the specified unsigned byte
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object