Class NumberSettings

    • Constructor Detail

      • NumberSettings

        public NumberSettings()
    • Method Detail

      • getThis

        protected NumberSettings getThis()
        Description copied from class: BasicSettings
        Returns the exact type of the this reference.
        It's a way to recover the type of the this object in a class hierarchy (cf. getThis "trick").
        Specified by:
        getThis in class BasicSettings<NumberSettings>
        Returns:
        The exact type of the this reference
      • numberType

        public NumberSettings numberType​(java.lang.Class<? extends java.lang.Number> clazz)
        Specify the Number type (A class that extends the class Number).
        Parameters:
        clazz - Class
        Returns:
        a reference to this object - used to chain calls
      • isInteger

        public boolean isInteger()
        Check whether the number type is integer.
        Returns:
        a reference to this object - used to chain calls
      • isDouble

        public boolean isDouble()
        Check whether the number type is double.
        Returns:
        a reference to this object - used to chain calls
      • isLong

        public boolean isLong()
        Check whether the number type is long.
        Returns:
        a reference to this object - used to chain calls