APIdia Launch Partner
Top Fields Constructors Methods
jdk.internal.joptsimple.internal

public Class Rows

extends Object
Class Inheritance
Imports
java.util.ArrayList, .List

Author
Paul Holser

Field Summary

Modifier and TypeField and Description
private final int
private final int
private final List<Row>
private int
private int

Constructor Summary

AccessConstructor and Description
public
Rows(int overallWidth, int columnSeparatorWidth)

Method Summary

Modifier and TypeMethod and Description
public void
add(String option, String description)

private void
add(Row row)

private int
public void
private int
private StringBuilder
pad(StringBuilder buffer, String s, int length)

public String
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

columnSeparatorWidthback to summary
private final int columnSeparatorWidth
overallWidthback to summary
private final int overallWidth
rowsback to summary
private final List<Row> rows
widthOfWidestDescriptionback to summary
private int widthOfWidestDescription
widthOfWidestOptionback to summary
private int widthOfWidestOption

Constructor Detail

Rowsback to summary
public Rows(int overallWidth, int columnSeparatorWidth)

Method Detail

addback to summary
public void add(String option, String description)
addback to summary
private void add(Row row)
descriptionWidthback to summary
private int descriptionWidth()
fitToWidthback to summary
public void fitToWidth()
optionWidthback to summary
private int optionWidth()
padback to summary
private StringBuilder pad(StringBuilder buffer, String s, int length)
renderback to summary
public String render()
resetback to summary
public void reset()