-
public final class OpenMapTableA simple excel like table, every column, every row and every cell can hold metadata and variables
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classOpenMapTable.Metadatapublic final classOpenMapTable.Columnpublic final classOpenMapTable.Cellpublic final classOpenMapTable.Rowpublic classOpenMapTable.Companion
-
Field Summary
Fields Modifier and Type Field Description private final OpenMapTable.Metadatametadataprivate final Map<String, OpenMapTable.Row>mapprivate final Map<String, Object>attributesprivate final Array<OpenMapTable.Column>columnsprivate final Collection<OpenMapTable.Row>rowsprivate final Set<String>keysprivate final IntegernumRowsprivate final BooleanisEmptyprivate final BooleanisNotEmptyprivate final IntegernumColumnsprivate final Integerident
-
Constructor Summary
Constructors Constructor Description OpenMapTable(Integer numColumns, Integer ident)
-
Method Summary
Modifier and Type Method Description final OpenMapTable.MetadatagetMetadata()final Map<String, OpenMapTable.Row>getMap()final Map<String, Object>getAttributes()final Array<OpenMapTable.Column>getColumns()final Collection<OpenMapTable.Row>getRows()final Set<String>getKeys()final IntegergetNumRows()final BooleangetIsEmpty()final BooleangetIsNotEmpty()final IntegergetNumColumns()final IntegergetIdent()final OpenMapTable.Rowget(String key)final Unitset(String key, OpenMapTable.Row row)final OpenMapTable.RowcomputeIfAbsent(String key)final OpenMapTable.RowcomputeIfAbsent(String key, Function1<OpenMapTable.Row, Unit> init)final Integercount(Function1<OpenMapTable.Row, Boolean> predicate)-
-
Method Detail
-
getMetadata
final OpenMapTable.Metadata getMetadata()
-
getMap
final Map<String, OpenMapTable.Row> getMap()
-
getAttributes
final Map<String, Object> getAttributes()
-
getColumns
final Array<OpenMapTable.Column> getColumns()
-
getRows
final Collection<OpenMapTable.Row> getRows()
-
getNumRows
final Integer getNumRows()
-
getIsEmpty
final Boolean getIsEmpty()
-
getIsNotEmpty
final Boolean getIsNotEmpty()
-
getNumColumns
final Integer getNumColumns()
-
get
final OpenMapTable.Row get(String key)
-
set
final Unit set(String key, OpenMapTable.Row row)
-
computeIfAbsent
final OpenMapTable.Row computeIfAbsent(String key)
-
computeIfAbsent
final OpenMapTable.Row computeIfAbsent(String key, Function1<OpenMapTable.Row, Unit> init)
-
count
final Integer count(Function1<OpenMapTable.Row, Boolean> predicate)
-
-
-
-