EnhancedPropertyFormatter
AccountNumberFormatter
, DefaultEnhancedPropertyFormatter
, DefaultPropertyFormatter
, EnhancedPropertyFormatterWrapper
EnhancedPropertyFormatter
instead. This class is unaware of primitives,
and does not leverage StringBuilder.@Deprecated public interface PropertyFormatter
Any implementation of PropertyFormatter
must have a public no-argument constructor.
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
format(Object) . |
void initialize(AnnotatedElement element)
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.element
- the field or method this formatter will be used for.Copyright © 2008–2018. All rights reserved.