|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ivmaidns.util.ToString
public class ToString
Class for 'object-to-string' converters.
All 'object-to-string' converters should extend this adapter
class and override toString(Object)
, implementing
their own conversion rules. The converters may be used in
serializable data structures since Serializable
interface is implemented.
GComparator
,
Serialized FormField Summary | |
---|---|
static ToString |
INSTANCE
The default 'to-string' converter providing the standard Java toString() functionality. |
Constructor Summary | |
---|---|
ToString()
Constructs a new 'to-string' converter. |
Method Summary | |
---|---|
java.lang.String |
toString(java.lang.Object obj)
The body of 'Object-to-String' converter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final ToString INSTANCE
toString()
functionality.
This constant field is initialized with the instantiation of
exactly this converter.
toString(java.lang.Object)
Constructor Detail |
---|
public ToString()
public
to allow custom
dynamic instantiation of this class.
INSTANCE
Method Detail |
---|
public java.lang.String toString(java.lang.Object obj)
toString()
method for the specified argument is executed (or "null" is
returned if argument is null
). This method should be
overridden in adapter subclasses to implement specific
'to-string' conversion (instead of the standard conversion).
obj
- the object to be converted (may be null
).
null
) of the
specified object.
java.lang.OutOfMemoryError
- if there is not enough memory.INSTANCE
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |