@InterfaceAudience.Private public final 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.
|
static String |
valueOf(String pretty,
PrettyPrinter.Unit unit)
Convert a human readable string to its value.
|
public static String format(String value, PrettyPrinter.Unit unit)
public static String valueOf(String pretty, PrettyPrinter.Unit unit) throws HBaseException
pretty
- unit
- HBaseException
format(String, Unit)
public static String toString(Collection<?> collection)
collection
- collection to pretty print.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.