Class NumberFilter

  • All Implemented Interfaces:
    RequestFilter

    public class NumberFilter
    extends Object
    implements RequestFilter
    Filter to check if a value can be parsed into a BigDecimal.
    Author:
    iperdomo
    • Constructor Detail

      • NumberFilter

        public NumberFilter()
    • Method Detail

      • accept

        public boolean accept​(String value)
        Description copied from interface: RequestFilter
        Function to check, if an input value is accepted by a filter.
        Specified by:
        accept in interface RequestFilter
        Parameters:
        value - input value which should be checked
        Returns:
        true, if the filter does accept the value