TableFormatter

public class TableFormatter
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.TableFormatter


คลาส Helper เพื่อแสดงเมทริกซ์ขององค์ประกอบ String เพื่อให้คอลัมน์องค์ประกอบแต่ละรายการเรียงกัน

สรุป

เครื่องมือสร้างสาธารณะ

TableFormatter()

เมธอดสาธารณะ

void displayTable(List<List<String>> table, PrintWriter writer)

แสดงองค์ประกอบ String ที่ระบุเป็นตารางที่มีคอลัมน์ที่จัดแนว

TableFormatter setColumnSpacing(int spacing)

กำหนดจำนวนอักขระที่เป็นการเว้นช่องว่างระหว่างแต่ละคอลัมน์

เครื่องมือสร้างสาธารณะ

TableFormatter

public TableFormatter ()

เมธอดสาธารณะ

displayTable

public void displayTable (List<List<String>> table, 
                PrintWriter writer)

แสดงองค์ประกอบ String ที่ระบุเป็นตารางที่มีคอลัมน์ที่จัดแนว

พารามิเตอร์
table List: เมทริกซ์ขององค์ประกอบ String แถวอาจมีความยาวแตกต่างกัน

writer PrintWriter: PrintWriter ที่จะดัมพ์เอาต์พุตไป

setColumnSpacing

public TableFormatter setColumnSpacing (int spacing)

กำหนดจำนวนอักขระที่เป็นการเว้นช่องว่างระหว่างแต่ละคอลัมน์

พารามิเตอร์
spacing int: จำนวนอักขระการเว้นวรรค

การคืนสินค้า
TableFormatter TableFormatter