PropertyFormatter
AccountNumberFormatter
DefaultEnhancedPropertyFormatter
instead.@Deprecated public class DefaultPropertyFormatter extends Object implements PropertyFormatter
Constructor | Description |
---|---|
DefaultPropertyFormatter() |
Deprecated.
|
Modifier and Type | Method | Description |
---|---|---|
String |
format(Object value) |
Deprecated.
Format a given value.
|
void |
initialize(AnnotatedElement element) |
Deprecated.
Initialize the formatter for use; this method will be called exactly once on an instance, prior
to any calls to
PropertyFormatter.format(Object) . |
public void initialize(AnnotatedElement element)
PropertyFormatter
PropertyFormatter.format(Object)
. This method does not need to be thread-safe. A typical implementation
might inspect the element for additional annotations used to configure the formatter.initialize
in interface PropertyFormatter
element
- the field or method this formatter will be used for.public String format(Object value)
PropertyFormatter
format
in interface PropertyFormatter
value
- the value to formatCopyright © 2008–2018. All rights reserved.