Interface MemoForIndex

All Known Implementing Classes:
EnergyMemoList, MemoList

public interface MemoForIndex
An interface for accessing voxelized mark memos by index.

This interface provides methods to retrieve a VoxelizedMarkMemo for a given index and to get the total number of memos available. It's useful for collections or caches of voxelized mark memos that need to be accessed by their position in the collection.

  • Method Details

    • getMemoForIndex

      VoxelizedMarkMemo getMemoForIndex(int index)
      Retrieves the VoxelizedMarkMemo for the specified index.
      Parameters:
      index - the index of the desired memo, must be non-negative and less than size()
      Returns:
      the VoxelizedMarkMemo corresponding to the given index
      Throws:
      IndexOutOfBoundsException - if the index is out of range
    • size

      int size()
      Returns the total number of memos available.
      Returns:
      the number of memos, always non-negative