@InterfaceAudience.Private public class PrettyPrinter extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PrettyPrinter.Unit |
Constructor and Description |
---|
PrettyPrinter() |
Modifier and Type | Method and Description |
---|---|
static String |
format(String value,
PrettyPrinter.Unit unit) |
static String |
toString(Collection<?> collection)
Pretty prints a collection of any type to a string.
|
public static String format(String value, PrettyPrinter.Unit unit)
public static String toString(Collection<?> collection)
collection
- collection to pretty print.Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.