T - the type parameterpublic class CollectionASCIITableAware<T> extends Object implements IASCIITableAware
| 构造器和说明 |
|---|
CollectionASCIITableAware(List<T> objList,
List<String> properties,
List<String> title)
Instantiates a new Collection ascii table aware.
|
CollectionASCIITableAware(List<T> objList,
String... properties)
Instantiates a new Collection ascii table aware.
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
formatData(ASCIITableHeader header,
int row,
int col,
Object data)
Format data string.
|
List<List<Object>> |
getData()
Gets data.
|
List<ASCIITableHeader> |
getHeaders()
Gets headers.
|
public CollectionASCIITableAware(List<T> objList, String... properties)
objList - the obj listproperties - the propertiespublic List<List<Object>> getData()
IASCIITableAwaregetData 在接口中 IASCIITableAwarepublic List<ASCIITableHeader> getHeaders()
IASCIITableAwaregetHeaders 在接口中 IASCIITableAwarepublic String formatData(ASCIITableHeader header, int row, int col, Object data)
IASCIITableAwareformatData 在接口中 IASCIITableAwareheader - the p 0row - the p 1col - the p 2data - the p 3Copyright © 2018. All rights reserved.