org.yajul.util
Class FieldPrinter
java.lang.Object
org.yajul.util.FieldPrinter
public class FieldPrinter
- extends java.lang.Object
Prints the fields of an object into a string buffer.
User: jdavis
Date: Oct 21, 2003
Time: 7:46:24 PM
- Author:
- jdavis
Constructor Summary |
FieldPrinter()
|
FieldPrinter(java.lang.StringBuilder sb)
Creates a new object field printer, that will append
to the supplied string builder. |
Method Summary |
void |
append(java.lang.Object o)
Appends all of the fields of the object to the string buffer. |
java.lang.String |
toString()
|
static java.lang.String |
toString(java.lang.Object o)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FieldPrinter
public FieldPrinter()
FieldPrinter
public FieldPrinter(java.lang.StringBuilder sb)
- Creates a new object field printer, that will append
to the supplied string builder.
- Parameters:
sb
- The StringBuilder to append to.
append
public void append(java.lang.Object o)
- Appends all of the fields of the object to the string buffer.
- Parameters:
o
- - The object to print.
toString
public static java.lang.String toString(java.lang.Object o)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2008. All Rights Reserved.