Class NumberUtil


  • public class NumberUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      NumberUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static void checkIfInUInt32Range​(long value)
      Deprecated.
      use requireUInt32(long) instead.
      static long requireUInt32​(long value)
      Checks if the given long is within the range of an unsigned 32-bit integer, the XML type "xs:unsignedInt".
      static int requireUShort16​(int value)
      Checks if the given int is within the range of an unsigned 16-bit integer, the XML type "xs:unsignedShort".
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • checkIfInUInt32Range

        @Deprecated
        public static void checkIfInUInt32Range​(long value)
        Deprecated.
        use requireUInt32(long) instead.
        Checks if the given long is within the range of an unsigned 32-bit integer, the XML type "xs:unsignedInt".
        Parameters:
        value - TODO javadoc me please
      • requireUInt32

        public static long requireUInt32​(long value)
        Checks if the given long is within the range of an unsigned 32-bit integer, the XML type "xs:unsignedInt".
        Parameters:
        value - the long to check.
        Returns:
        the input value.
      • requireUShort16

        public static int requireUShort16​(int value)
        Checks if the given int is within the range of an unsigned 16-bit integer, the XML type "xs:unsignedShort".
        Parameters:
        value - the int to check.
        Returns:
        the input value.