Package org.openbravo.base.filter
Class NumberFilter
- java.lang.Object
-
- org.openbravo.base.filter.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
-
-
Field Summary
Fields Modifier and Type Field Description static NumberFilter
instance
-
Constructor Summary
Constructors Constructor Description NumberFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(String value)
Function to check, if an input value is accepted by a filter.
-
-
-
Field Detail
-
instance
public static final NumberFilter instance
-
-
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 interfaceRequestFilter
- Parameters:
value
- input value which should be checked- Returns:
- true, if the filter does accept the value
-
-