Top Fields Constructors Methods
joptsimple.internal

pack-priv Class Columns

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

Author
Paul Holser

Field Summary

Modifier and TypeField and Description
private final int
private static final int
private final int

Constructor Summary

AccessConstructor and Description
pack-priv
Columns(int optionWidth, int descriptionWidth)

Method Summary

Modifier and TypeMethod and Description
pack-priv List<Row>
fit(Row row)

private static String
itemOrEmpty(List<String> items, int index)

private List<String>
piecesOf(String raw, int width)

private List<String>
piecesOfEmbeddedLine(String line, int width)

private StringBuilder
processNextWord(String source, StringBuilder nextPiece, int start, int end, int width, List<String> pieces)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

descriptionWidthback to summary
private final int descriptionWidth
INDENT_WIDTHback to summary
private static final int INDENT_WIDTH
optionWidthback to summary
private final int optionWidth

Constructor Detail

Columnsback to summary
pack-priv Columns(int optionWidth, int descriptionWidth)

Method Detail

fitback to summary
pack-priv List<Row> fit(Row row)
itemOrEmptyback to summary
private static String itemOrEmpty(List<String> items, int index)
piecesOfback to summary
private List<String> piecesOf(String raw, int width)
piecesOfEmbeddedLineback to summary
private List<String> piecesOfEmbeddedLine(String line, int width)
processNextWordback to summary
private StringBuilder processNextWord(String source, StringBuilder nextPiece, int start, int end, int width, List<String> pieces)