Interface BitList


public interface BitList
A compact immutable sequence of boolean values backed by a bit set.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    Mutable builder for BitList.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a mutable bit-list builder.
    Returns an immutable copy of this bit list.
    boolean
    get(int i)
    Returns the bit value at the supplied index.
    int
    Returns the number of bits.
  • Method Details

    • builder

      static BitList.Builder builder()
      Creates a mutable bit-list builder.
      Returns:
      new builder
    • get

      boolean get(int i)
      Returns the bit value at the supplied index.
      Parameters:
      i - zero-based index
      Returns:
      bit value
    • size

      int size()
      Returns the number of bits.
      Returns:
      bit-list size
    • copy

      BitList copy()
      Returns an immutable copy of this bit list.
      Returns:
      copied bit list