Package org.geotools.data.memory
Class MemoryState
- Object
-
- ContentState
-
- MemoryState
-
public class MemoryState extends ContentState
State for MemoryDataStore providing FeatureType and stored features.- Author:
- Jody Garnett (Boundless)
-
-
Field Summary
-
Fields inherited from class ContentState
batchFeatureEvent, bounds, count, entry, featureType, listeners, transactionState, tx
-
-
Constructor Summary
Constructors Constructor Description MemoryState(MemoryEntry entry)
State for MemoryDataStore providing FeatureType and stored features.MemoryState(MemoryState state)
Creates the state from an existing one.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MemoryState
copy()
Copies the state.MemoryEntry
getEntry()
The entry which maintains the state.-
Methods inherited from class ContentState
addListener, close, fireBatchFeatureEvent, fireFeatureAdded, fireFeatureEvent, fireFeatureRemoved, fireFeatureUpdated, flush, getBatchFeatureEvent, getBounds, getCount, getFeatureType, getTransaction, hasListener, removeListener, setBounds, setCount, setFeatureType, setTransaction
-
-
-
-
Constructor Detail
-
MemoryState
public MemoryState(MemoryEntry entry)
State for MemoryDataStore providing FeatureType and stored features.
-
MemoryState
public MemoryState(MemoryState state)
Creates the state from an existing one.
-
-
Method Detail
-
getEntry
public MemoryEntry getEntry()
Description copied from class:ContentState
The entry which maintains the state.- Overrides:
getEntry
in classContentState
-
copy
public MemoryState copy()
Description copied from class:ContentState
Copies the state.Subclasses should override this method. Any mutable state objects should be cloned.
- Overrides:
copy
in classContentState
- Returns:
- A copy of the state.
-
-