Class IndexBiMap.StateMapBase<K,T,C extends VFXCell<T>>
java.lang.Object
io.github.palexdev.virtualizedfx.utils.IndexBiMap<K,C>
io.github.palexdev.virtualizedfx.utils.IndexBiMap.StateMapBase<K,T,C>
- Direct Known Subclasses:
IndexBiMap.RowsStateMap
,IndexBiMap.StateMap
- Enclosing class:
IndexBiMap<K,
V>
Extension of
IndexBiMap
that introduces polling methods: pollFirst()
, pollLast()
.
Also base class to map the items of a VirtualizedFX
container to VFXCell
instances.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.github.palexdev.virtualizedfx.utils.IndexBiMap
IndexBiMap.RowsStateMap<T,
C extends VFXCell<T>>, IndexBiMap.StateMap<T, C extends VFXCell<T>>, IndexBiMap.StateMapBase<K, T, C extends VFXCell<T>> -
Field Summary
Fields inherited from class io.github.palexdev.virtualizedfx.utils.IndexBiMap
byIndex, byKey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRemoves the first entry from thebyIndex
map by usingSequencedMap.pollFirstEntry()
.pollLast()
Removes the last entry from thebyIndex
map by usingSequencedMap.pollLastEntry()
.
-
Constructor Details
-
StateMapBase
public StateMapBase()
-
-
Method Details
-
pollFirst
Removes the first entry from thebyIndex
map by usingSequencedMap.pollFirstEntry()
.Note that this won't remove the "corresponding" entry from the
byKey
map, leaving this in an invalid state.Ideally, this should be used when "transitioning" to a new bimap.
-
pollLast
Removes the last entry from thebyIndex
map by usingSequencedMap.pollLastEntry()
.Note that this won't remove the "corresponding" entry from the
byKey
map, leaving this in an invalid state.Ideally, this should be used when "transitioning" to a new bimap.
-