Interface BitStorage

All Known Implementing Classes:
SimpleBitStorage, ZeroBitStorage

public interface BitStorage
  • Method Summary

    Modifier and Type
    Method
    Description
     
    int
    get(int index)
    Gets the entry at the given index
    void
    getAll(IntConsumer consumer)
     
    int
    getAndSet(int index, int value)
     
    int
     
    long[]
     
    int
     
    void
    set(int index, int value)
    Sets the entry at the given location to the given value
    void
    unpack(int[] array)
     
  • Method Details

    • getAndSet

      int getAndSet(int index, int value)
    • set

      void set(int index, int value)
      Sets the entry at the given location to the given value
    • get

      int get(int index)
      Gets the entry at the given index
    • getRaw

      long[] getRaw()
    • getSize

      int getSize()
    • getBits

      int getBits()
    • getAll

      void getAll(IntConsumer consumer)
    • unpack

      void unpack(int[] array)
    • copy

      BitStorage copy()