public interface Printable
Appendable
(e.g., a StringBuilder
) instead of simply using
Object.toString()
.Modifier and Type | Method and Description |
---|---|
void |
print(Appendable a)
Outputs the current object.
|
static String |
toString(Printable p) |
void print(Appendable a) throws IOException
a
- the appendable.IOException
- if an error occurs during appending.Copyright © 2020. All rights reserved.