Interface Printable
-
- All Known Implementing Classes:
AbstractPrintable,Pair,Triple
public interface PrintableInterface that allows outputting to anAppendable(e.g., aStringBuilder) instead of simply usingObject.toString().
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidprint(Appendable a)Outputs the current object.static StringtoString(Printable p)
-
-
-
Method Detail
-
print
void print(Appendable a) throws IOException
Outputs the current object.- Parameters:
a- the appendable.- Throws:
IOException- if an error occurs during appending.
-
-