Class NumberModel

    • Constructor Detail

      • NumberModel

        public NumberModel​(java.lang.Number number,
                           BeansWrapper wrapper)
        Creates a new model that wraps the specified number object.
        Parameters:
        number - the number object to wrap into a model.
        wrapper - the BeansWrapper associated with this model. Every model has to have an associated BeansWrapper instance. The model gains many attributes from its wrapper, including the caching behavior, method exposure level, method-over-item shadowing policy etc.
    • Method Detail

      • getAsNumber

        public java.lang.Number getAsNumber()
        Description copied from interface: TemplateNumberModel
        Returns the numeric value. The return value must not be null.
        Specified by:
        getAsNumber in interface TemplateNumberModel
        Returns:
        the Number instance associated with this number model.