Class IndexedItemSetMapBase<K,S,M>
java.lang.Object
com.vladsch.flexmark.util.collection.IndexedItemSetMapBase<K,S,M>
- All Implemented Interfaces:
IndexedItemSetMap<K,
,S, M> Map<K,
S>
- Direct Known Subclasses:
IndexedItemBitSetMap
public abstract class IndexedItemSetMapBase<K,S,M>
extends Object
implements IndexedItemSetMap<K,S,M>
-
Nested Class Summary
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
abstract boolean
addSetItem
(S s, int item) void
clear()
boolean
containsItem
(M key, int item) boolean
containsKey
(@Nullable Object o) abstract boolean
containsSetItem
(S s, int item) boolean
containsValue
(@Nullable Object o) entrySet()
boolean
isEmpty()
keySet()
abstract K
abstract S
newSet()
void
boolean
removeItem
(M key, int item) abstract boolean
removeSetItem
(S s, int item) int
size()
@NotNull Collection<S>
values()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
bag
-
-
Constructor Details
-
IndexedItemSetMapBase
public IndexedItemSetMapBase() -
IndexedItemSetMapBase
public IndexedItemSetMapBase(int capacity)
-
-
Method Details
-
mapKey
- Specified by:
mapKey
in interfaceIndexedItemSetMap<K,
S, M>
-
newSet
- Specified by:
newSet
in interfaceIndexedItemSetMap<K,
S, M>
-
addSetItem
- Specified by:
addSetItem
in interfaceIndexedItemSetMap<K,
S, M>
-
removeSetItem
- Specified by:
removeSetItem
in interfaceIndexedItemSetMap<K,
S, M>
-
containsSetItem
- Specified by:
containsSetItem
in interfaceIndexedItemSetMap<K,
S, M>
-
addItem
- Specified by:
addItem
in interfaceIndexedItemSetMap<K,
S, M>
-
removeItem
- Specified by:
removeItem
in interfaceIndexedItemSetMap<K,
S, M>
-
containsItem
- Specified by:
containsItem
in interfaceIndexedItemSetMap<K,
S, M>
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKey
in interfaceMap<K,
S>
-
containsValue
- Specified by:
containsValue
in interfaceMap<K,
S>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-