| 
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.DefaultLongFormatter
Default implementation.
This uses Long#toString(long value, int radix)
 to format specified value.
| Field Summary | |
static DefaultLongFormatter | 
S_DEC
For convenience to format decimal radix as signed long.  | 
static DefaultLongFormatter | 
S_HEX
For convenience to format hexadecimal radix as signed long.  | 
static DefaultLongFormatter | 
S_OCT
For convenience to format in octal radix as signed long.  | 
| Constructor Summary | |
DefaultLongFormatter(int radix)
Constructor.  | 
|
| Method Summary | |
 java.lang.String | 
format(long value)
Format specified value.  | 
 java.lang.String | 
format(java.lang.Long 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 DefaultLongFormatter S_OCT
This returns "-1" for 0xFFFFFFFFFFFFFFFF.
public static final DefaultLongFormatter S_DEC
This returns "-1" for 0xFFFFFFFFFFFFFFFF.
public static final DefaultLongFormatter S_HEX
This returns "-1" for 0xFFFFFFFFFFFFFFFF.
| Constructor Detail | 
public DefaultLongFormatter(int radix)
radix - to format specified byte value.| Method Detail | 
public final ObjectFormatter forObject()
ObjectFormatter.
 This is useful to get ObjectFormatter
 which formats value in as same manner as
 format(Long) of "this".
This adaptation is done even if
 you override format(Long) in derived classes.
DefaultUniversalFormatter.addObjectFormatter(jp.ne.dti.lares.foozy.ptlog.format.ObjectFormatter)public java.lang.String format(long value)
LongFormatter
format in interface LongFormatterpublic java.lang.String format(java.lang.Long value)
LongFormatter
format in interface LongFormatter
  | 
PTLog API - 1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||