Package org.moeaframework.util.format
Class ConstraintFormatter
java.lang.Object
org.moeaframework.util.format.ConstraintFormatter
- All Implemented Interfaces:
Formatter<Constraint>
Formatter for
Constraint
s. Primarily, this uses the registered formatter, if any, for numeric types.-
Constructor Details
-
ConstraintFormatter
Constructs a new constraint formatter.- Parameters:
data
- reference back to the tabular data object this formatter is associated, so it can call theTabularData.formatValue(Object)
method on primitive types
-
-
Method Details
-
getType
Description copied from interface:Formatter
Returns the class (or classes using inheritance) this formatter supports.- Specified by:
getType
in interfaceFormatter<Constraint>
- Returns:
- the class
-
format
Description copied from interface:Formatter
Formats the given value into a string representation.- Specified by:
format
in interfaceFormatter<Constraint>
- Parameters:
value
- the value- Returns:
- the string representation
-