Package app.babylon.table.column
Interface ColumnObject.Builder<T>
- Type Parameters:
T- the value type produced by the builder
- All Superinterfaces:
Column.Builder
- All Known Subinterfaces:
ColumnCategorical.Builder<T>
- Enclosing interface:
ColumnObject<T>
Builder for nullable object columns.
-
Method Summary
Modifier and TypeMethodDescriptiondefault ColumnObject.Builder<T> add(CharSequence chars, int offset, int length) Appends a value directly from a character slice.Appends a value to the column.default ColumnObject.Builder<T> addNull()Appends an unset row.build()Materialises the current builder contents as an immutable column.getName()Returns the name that will be assigned to the built column.getType()intsize()Returns the number of rows currently accumulated by the builder.
-
Method Details
-
getName
ColumnName getName()Description copied from interface:Column.BuilderReturns the name that will be assigned to the built column.- Specified by:
getNamein interfaceColumn.Builder- Returns:
- the target column name
-
getType
Column.Type getType() -
add
Appends a value to the column.- Parameters:
x- the value to append, which may benull- Returns:
- this builder
-
add
Description copied from interface:Column.BuilderAppends a value directly from a character slice.- Specified by:
addin interfaceColumn.Builder- Parameters:
chars- the source textoffset- the start offsetlength- the slice length- Returns:
- this builder
-
build
ColumnObject<T> build()Description copied from interface:Column.BuilderMaterialises the current builder contents as an immutable column.- Specified by:
buildin interfaceColumn.Builder- Returns:
- the built column
-
addNull
Appends an unset row.- Returns:
- this builder
-
size
int size()Returns the number of rows currently accumulated by the builder.- Returns:
- the builder size
-