Package app.babylon.table.column
Interface ColumnObject.Builder<T>
- Type Parameters:
T- the value type produced by the builder
- All Superinterfaces:
ColumnBuilder
- All Known Subinterfaces:
ColumnCategorical.Builder<T>
- Enclosing interface:
ColumnObject<T>
Builder for nullable object columns.
-
Method Summary
Modifier and TypeMethodDescriptionAppends a value to the column.default ColumnObject.Builder<T> addNull()Appends an unset row.build()Materialises the current builder contents as an immutable column.first()Returns the first value currently added to the builder.getName()Returns the name that will be assigned to the built column.last()Returns the most recently added value.intsize()Returns the number of rows currently accumulated by the builder.
-
Method Details
-
getName
ColumnName getName()Description copied from interface:ColumnBuilderReturns the name that will be assigned to the built column.- Specified by:
getNamein interfaceColumnBuilder- Returns:
- the target column name
-
add
Appends a value to the column.- Parameters:
x- the value to append, which may benull- Returns:
- this builder
-
build
ColumnObject<T> build()Description copied from interface:ColumnBuilderMaterialises the current builder contents as an immutable column.- Specified by:
buildin interfaceColumnBuilder- Returns:
- the built column
-
addNull
Appends an unset row.- Returns:
- this builder
-
first
T first()Returns the first value currently added to the builder.- Returns:
- the first value
-
last
T last()Returns the most recently added value.- Returns:
- the last value
-
size
int size()Returns the number of rows currently accumulated by the builder.- Returns:
- the builder size
-