Top Fields Constructors Methods
io.github.kusoroadeolu.clique.internal

public Class WidthAwareList

extends Object
Class Inheritance
Annotations
@InternalApi
since:3.2.0
Imports
io.github.kusoroadeolu.clique.internal.documentation.InternalApi, java.util.ArrayList, .List

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public void
add(Cell c)

private int
public List<Cell>
public Cell
get(int pos)

public String
getStyledText(int pos)

public List<String>
list()

public int
public void
remove(int index)

public int
size()

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public void
update(int i, Cell c)

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

cellsback to summary
private final List<Cell> cells
longestback to summary
private int longest

Constructor Detail

WidthAwareListback to summary
public WidthAwareList()
WidthAwareListback to summary
public WidthAwareList(List<Cell> cells)

Method Detail

addback to summary
public void add(Cell c)
calculateLongestback to summary
private int calculateLongest()
cellsback to summary
public List<Cell> cells()
getback to summary
public Cell get(int pos)
getStyledTextback to summary
public String getStyledText(int pos)
listback to summary
public List<String> list()
longestback to summary
public int longest()
removeback to summary
public void remove(int index)
sizeback to summary
public int size()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
updateback to summary
public void update(int i, Cell c)
updateLongestback to summary
public void updateLongest(Cell c)