|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--anthill.util.Printable
Classes extending Printable
automatically inherit
a toString()
method which prints out their contents.
i.e. the value of the fields contained in the object instances.
Note that toString()
in a Printable
object
may generate infinite loops if the reference graph obtained starting
from the object contains a cycle of Printable
objects.
Constructor Summary | |
Printable()
|
Method Summary | |
java.lang.String |
toString()
toString method to print out the content of
an object. |
java.lang.String |
toString(java.lang.String indent)
Auto-indenting, recursive toString() method to
print out the content of an object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Printable()
Method Detail |
public java.lang.String toString()
toString
method to print out the content of
an object.toString
in class java.lang.Object
public java.lang.String toString(java.lang.String indent)
toString()
method to
print out the content of an object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |