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 Summary
Modifier and TypeMethodDescriptiongetMemoForIndex
(int index) Retrieves theVoxelizedMarkMemo
for the specified index.int
size()
Returns the total number of memos available.
-
Method Details
-
getMemoForIndex
Retrieves theVoxelizedMarkMemo
for the specified index.- Parameters:
index
- the index of the desired memo, must be non-negative and less thansize()
- 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
-