jp.ne.dti.lares.foozy.ptlog.format
Interface UniversalFormatter
- All Superinterfaces:
- BufferFormatter, ByteFormatter, CharFormatter, DoubleFormatter, FloatFormatter, IntFormatter, LongFormatter, ObjectFormatter, ShortFormatter, TraceFormatter
- All Known Implementing Classes:
- DefaultUniversalFormatter
- public interface UniversalFormatter
- extends ByteFormatter, CharFormatter, ShortFormatter, IntFormatter, LongFormatter, FloatFormatter, DoubleFormatter, ObjectFormatter, TraceFormatter, BufferFormatter
Abstraction to format variety values.
Method Summary |
boolean |
accepts(java.lang.Object value)
Examine specified one is acceptable for implementation.
|
java.lang.String |
format(java.lang.Object value)
Format specified value.
|
accepts
public boolean accepts(java.lang.Object value)
- Examine specified one is acceptable for implementation.
Implementation should examine
whether specified value is null or not,
even though ObjectFormatter.accepts(java.lang.Object)
allows to omit it.
- Specified by:
accepts
in interface ObjectFormatter
format
public java.lang.String format(java.lang.Object value)
- Format specified value.
Implementation should examine
whether specified value is null or not,
even though ObjectFormatter.format(java.lang.Object)
allows to omit it.
- Specified by:
format
in interface ObjectFormatter