Class UInt32

    • Constructor Detail

      • UInt32

        public UInt32​(long _value)
        Create a UInt32 from a long.
        Parameters:
        _value - Must be a valid integer within MIN_VALUE–MAX_VALUE
        Throws:
        NumberFormatException - if value is not between MIN_VALUE and MAX_VALUE
      • UInt32

        public UInt32​(String _value)
        Create a UInt32 from a String.
        Parameters:
        _value - Must parse to a valid integer within MIN_VALUE–MAX_VALUE
        Throws:
        NumberFormatException - if value is not an integer between MIN_VALUE and MAX_VALUE
    • Method Detail

      • byteValue

        public byte byteValue()
        The value of this as a byte.
        Overrides:
        byteValue in class Number
      • doubleValue

        public double doubleValue()
        The value of this as a double.
        Specified by:
        doubleValue in class Number
      • floatValue

        public float floatValue()
        The value of this as a float.
        Specified by:
        floatValue in class Number
      • intValue

        public int intValue()
        The value of this as a int.
        Specified by:
        intValue in class Number
      • longValue

        public long longValue()
        The value of this as a long.
        Specified by:
        longValue in class Number
      • shortValue

        public short shortValue()
        The value of this as a short.
        Overrides:
        shortValue in class Number
      • equals

        public boolean equals​(Object o)
        Test two UInt32s for equality.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • compareTo

        public int compareTo​(UInt32 other)
        Compare two UInt32s.
        Specified by:
        compareTo in interface Comparable<UInt32>
        Returns:
        0 if equal, -ve or +ve if they are different.
      • toString

        public String toString()
        The value of this as a string
        Overrides:
        toString in class Object