Class BitList.Builder

java.lang.Object
app.babylon.table.column.BitList.Builder
Enclosing interface:
BitList

public static final class BitList.Builder extends Object
Mutable builder for BitList.
  • Constructor Details

    • Builder

      public Builder()
      Creates an empty builder.
  • Method Details

    • add

      public BitList.Builder add(boolean value)
      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

      public BitList build()
      Builds the immutable bit list and transfers ownership.
      Returns:
      immutable bit list