Package app.babylon.table.column
Class BitList.Builder
java.lang.Object
app.babylon.table.column.BitList.Builder
- Enclosing interface:
BitList
Mutable builder for
BitList.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Builder
public Builder()Creates an empty builder.
-
-
Method Details
-
add
Appends a bit value.- Parameters:
value- value to append- Returns:
- this builder
-
get
public boolean get(int i) Returns the bit currently stored at the supplied index.- Parameters:
i- zero-based index- Returns:
- bit value
-
size
public int size()Returns the number of appended values.- Returns:
- builder size
-
build
Builds the immutable bit list and transfers ownership.- Returns:
- immutable bit list
-