|
PTLog API - 1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjp.ne.dti.lares.foozy.ptlog.format.DefaultFloatFormatter
Default implementation.
This uses Float#toString(double)
to format specified value.
| Field Summary | |
static DefaultFloatFormatter |
INSTANCE
For convenience to format float value. |
| Constructor Summary | |
DefaultFloatFormatter()
Constructor. |
|
| Method Summary | |
java.lang.String |
format(float value)
Format specified value. |
java.lang.String |
format(java.lang.Float value)
Format specified value. |
ObjectFormatter |
forObject()
Get object which adapts "this" to ObjectFormatter.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final DefaultFloatFormatter INSTANCE
| Constructor Detail |
public DefaultFloatFormatter()
| Method Detail |
public final ObjectFormatter forObject()
ObjectFormatter.
This is useful to get ObjectFormatter
which formats value in as same manner as
format(Float) of "this".
This adaptation is done even if
you override format(Float) in derived classes.
DefaultUniversalFormatter.addObjectFormatter(jp.ne.dti.lares.foozy.ptlog.format.ObjectFormatter)public java.lang.String format(float value)
FloatFormatter
format in interface FloatFormatterpublic java.lang.String format(java.lang.Float value)
FloatFormatter
format in interface FloatFormatter
|
PTLog API - 1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||