Class FloatBigList.FloatBlock

All Implemented Interfaces:
Serializable, Cloneable, IFloatListable
Enclosing class:
FloatBigList

static class FloatBigList.FloatBlock extends FloatGapList
A block stores in maximum blockSize number of elements. The first block in a FloatBigList will grow until reaches this limit, all other blocks are directly allocated with a capacity of blockSize. A block maintains a reference count which allows a block to be shared among different FloatBigList instances with a copy-on-write approach.
  • Field Details

  • Constructor Details

    • FloatBlock

      public FloatBlock()
    • FloatBlock

      public FloatBlock(int capacity)
    • FloatBlock

      public FloatBlock(FloatBigList.FloatBlock that)
  • Method Details

    • isShared

      public boolean isShared()
      Returns:
      true if block is shared by several FloatBigList instances
    • ref

      Increment reference count as block is used by one FloatBigList instance more.
    • unref

      public void unref()
      Decrement reference count as block is no longer used by one FloatBigList instance.