public final class FlipTable extends Object
┌─────────────┬────────────────────────────┬──────────────┐ │ Name │ Function │ Author │ ╞═════════════╪════════════════════════════╪══════════════╡ │ Flip Tables │ Pretty-print a text table. │ Jake Wharton │ └─────────────┴────────────────────────────┴──────────────┘
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
of(Iterable<?> rows)
Create a table from a group of objects.
|
static String |
of(List<String> headers,
List<String[]> data)
Create a new table with the specified headers and row data.
|
static String |
of(ResultSet resultSet)
Create a table from a
ResultSet. |
static String |
of(String[] headers,
Object[][] data)
Create a table from an array of objects using
String.valueOf(java.lang.Object). |
static String |
of(String[] headers,
String[][] data) |
String |
toString() |
public static String of(List<String> headers, List<String[]> data)
headers - Header rowdata - Data rowspublic static String of(String[] headers, Object[][] data)
String.valueOf(java.lang.Object).headers - Header rowdata - Data rowspublic static String of(Iterable<?> rows)
rows - Iterable rowsCopyright © 2014–2018. All rights reserved.