java.lang.Object
net.paulem.arcana.regions.container.blocks.MapContainer<S,K>
- Type Parameters:
S- the type of tracked objects, which must implement theTrackedinterfaceK- the type of the key associated with the tracked object
- All Implemented Interfaces:
SectionContainer<S,K>
public class MapContainer<S extends Tracked<K>,K extends WorldKey>
extends Object
implements SectionContainer<S,K>
A
SectionContainer implementation backed by a sparse Int2ObjectOpenHashMap.
Well-suited for sections with few occupied positions, since it only allocates entries for
positions that are actually in use.-
Constructor Details
-
MapContainer
public MapContainer()
-
-
Method Details
-
get
Retrieves the holder stored at the given position. -
set
Stores or clears the holder at the given position. -
getAll
-
size
public int size() -
isEmpty
public boolean isEmpty()
-