Class DynamicSectionContainer<S extends Tracked<K>,K extends WorldKey>

java.lang.Object
ovh.paulem.arcana.regions.container.blocks.DynamicSectionContainer<S,K>
Type Parameters:
S - the type of tracked objects, which must implement the Tracked interface
K - the type of the key associated with the tracked object
All Implemented Interfaces:
SectionContainer<S,K>

public class DynamicSectionContainer<S extends Tracked<K>,K extends WorldKey> extends Object implements SectionContainer<S,K>
A container implementation that dynamically transitions between a MapContainer and an ArraySectionContainer based on the load factor and size constraints. This class is designed to optimize memory usage and performance by starting with an efficient map-based container and expanding into an array-based container when necessary.