Class UnsignedInt

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<UnsignedInt>
    Direct Known Subclasses:
    UnsignedShort

    public class UnsignedInt
    extends java.lang.Number
    implements java.lang.Comparable<UnsignedInt>
    Custom class for supporting primitive XSD data type UnsignedInt
    Author:
    Chris Haddad
    See Also:
    XML Schema 3.3.22, Serialized Form
    • Field Detail

      • lValue

        protected java.lang.Long lValue
    • Constructor Detail

      • UnsignedInt

        public UnsignedInt()
      • UnsignedInt

        public UnsignedInt​(long iValue)
                    throws java.lang.NumberFormatException
        ctor for UnsignedInt
        Throws:
        java.lang.NumberFormatException - will be thrown if validation fails
      • UnsignedInt

        public UnsignedInt​(java.lang.String stValue)
                    throws java.lang.NumberFormatException
        Throws:
        java.lang.NumberFormatException
    • Method Detail

      • setValue

        public void setValue​(long iValue)
                      throws java.lang.NumberFormatException
        validates the data and sets the value for the object.
        Parameters:
        iValue - value
        Throws:
        java.lang.NumberFormatException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • isValid

        public static boolean isValid​(long iValue)
        validate the value against the xsd definition
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • compareTo

        public int compareTo​(UnsignedInt obj)
        Specified by:
        compareTo in interface java.lang.Comparable<UnsignedInt>
      • byteValue

        public byte byteValue()
        Overrides:
        byteValue in class java.lang.Number
      • shortValue

        public short shortValue()
        Overrides:
        shortValue in class java.lang.Number
      • intValue

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

        public long longValue()
        Specified by:
        longValue in class java.lang.Number
      • doubleValue

        public double doubleValue()
        Specified by:
        doubleValue in class java.lang.Number
      • floatValue

        public float floatValue()
        Specified by:
        floatValue in class java.lang.Number