Package org.moeaframework.util.format
Class ConstraintFormatter
java.lang.Object
org.moeaframework.util.format.ConstraintFormatter
- All Implemented Interfaces:
Formatter<Constraint>
Formatter for
Constraints. 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:FormatterReturns the class (or classes using inheritance) this formatter supports.- Specified by:
getTypein interfaceFormatter<Constraint>- Returns:
- the class
-
format
Description copied from interface:FormatterFormats the given value into a string representation.- Specified by:
formatin interfaceFormatter<Constraint>- Parameters:
value- the value- Returns:
- the string representation
-