Class UShort

    • Constructor Detail

      • UShort

        public UShort​(short unsignedValue)
        Constructs a newly allocated UShort object that represent the specified unsigned short value.
        Parameters:
        unsignedValue - the value to be represented by the UShort
    • 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 UShort valueOf​(short unsignedValue)
        A wrapper for the given unsigned short.
        Parameters:
        unsignedValue - an unsigned short value
        Returns:
        a UShort instance representing unsignedValue
      • toString

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

        public int hashCode()
        Overrides:
        hashCode in class Object