Interface SectionContainer<S extends Tracked<K>,K extends WorldKey>

Type Parameters:
S - the type of elements stored in the container, which must implement the Tracked interface
K - the type of key associated with each element, which must extend WorldKey
All Known Implementing Classes:
ArraySectionContainer, DynamicSectionContainer, MapContainer

public interface SectionContainer<S extends Tracked<K>,K extends WorldKey>
Represents a container for managing sections of data associated with spatial positions. Provides methods for accessing, modifying, and retrieving the elements within the container. This container works with elements that are Tracked and are associated with a key implementing WorldKey.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
     
    get(int position)
     
    it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap<Holder<S,K>>
     
    default boolean
     
    void
    set(int position, Holder<S,K> holder)
     
    default int
     
  • Method Details

    • get

      Holder<S,K> get(int position)
    • set

      void set(int position, Holder<S,K> holder)
    • getAll

      it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap<Holder<S,K>> getAll()
    • size

      default int size()
    • isEmpty

      default boolean isEmpty()
    • copyTo

      default void copyTo(SectionContainer<S,K> target)