Package app.babylon.table.column
Interface Column.Builder
- All Known Subinterfaces:
ColumnBoolean.Builder,ColumnByte.Builder,ColumnCategorical.Builder<T>,ColumnDouble.Builder,ColumnInt.Builder,ColumnLong.Builder,ColumnObject.Builder<T>
- Enclosing interface:
Column
public static interface Column.Builder
Builds an immutable column instance for a specific column name.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Column.Builderadd(Sentence.ParseMode parseMode, CharSequence chars) Appends a value directly from a whole character sequence using the supplied parse mode.default Column.Builderadd(Sentence.ParseMode parseMode, CharSequence chars, int start, int end) Appends a value directly from a character slice using the supplied parse mode.default Column.Builderadd(CharSequence chars) Appends a value directly from a whole character sequence using exact parsing.default Column.Builderadd(CharSequence chars, int start, int end) Appends a value directly from a character slice using exact parsing.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.
-
Method Details
-
getName
ColumnName getName()Returns the name that will be assigned to the built column.- Returns:
- the target column name
-
add
Appends a value directly from a whole character sequence using exact parsing.- Parameters:
chars- the source text- Returns:
- this builder
-
add
Appends a value directly from a character slice using exact parsing.- Parameters:
chars- the source textstart- the start indexend- one past the last character in the slice- Returns:
- this builder
-
add
Appends a value directly from a whole character sequence using the supplied parse mode.- Parameters:
parseMode- sentence parse mode, ornullfor exact parsingchars- the source text- Returns:
- this builder
-
add
Appends a value directly from a character slice using the supplied parse mode.- Parameters:
parseMode- sentence parse mode, ornullfor exact parsingchars- the source textstart- the start indexend- one past the last character in the slice- Returns:
- this builder
-
addNull
Column.Builder addNull()Appends an unset row.- Returns:
- this builder
-
build
Column build()Materialises the current builder contents as an immutable column.- Returns:
- the built column
-