Class OrderedMultiMap<K,V>
java.lang.Object
com.vladsch.flexmark.util.collection.OrderedMultiMap<K,V>
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable CollectionHost<Paired<K,
V>> (package private) boolean
(package private) boolean
private final @NotNull OrderedSet<K>
private final @NotNull OrderedSet<V>
-
Constructor Summary
ConstructorsConstructorDescriptionOrderedMultiMap
(int capacity) OrderedMultiMap
(int capacity, @Nullable CollectionHost<Paired<K, V>> host) OrderedMultiMap
(@NotNull CollectionHost<Paired<K, V>> host) -
Method Summary
Modifier and TypeMethodDescription(package private) void
(package private) void
addingNullKey
(int index) (package private) void
addingNullValue
(int index) (package private) void
addingValue
(int index, V v, @Nullable Object k) private boolean
addKeyValue
(K k, V v) void
addNullEntry
(int index) void
clear()
boolean
containsKey
(@Nullable Object o) boolean
containsValue
(@Nullable Object o) @NotNull OrderedSet<Map.Entry<K,
V>> entrySet()
boolean
void
getEntry
(int index) getKey
(int index) getKeyValue
(@Nullable Object o) private BitSet
private BitSet
int
getValue
(int index) getValueKey
(@Nullable Object o) int
hashCode()
boolean
isEmpty()
iterator()
keys()
@NotNull OrderedSet<K>
keySet()
void
void
putAllKeyValues
(Map<? extends K, ? extends V> map) void
putAllValueKeys
(Map<? extends V, ? extends K> map) boolean
putKeyValue
(K k, V v) boolean
putKeyValueEntry
(Map.Entry<K, V> e) boolean
putKeyValuePair
(@NotNull Paired<K, V> e) putValueKey
(V v, K k) boolean
putValueKeyEntry
(Map.Entry<V, K> e) boolean
putValueKeyPair
(@NotNull Paired<V, K> e) removeEntry
(Map.Entry<K, V> e) (package private) boolean
removeEntryIndex
(int index) private boolean
removeEntryIndex
(int index, K k, V v) (package private) Object
removingKey
(int index, K k) (package private) Object
removingValue
(int index, V v) int
size()
@NotNull Collection<V>
values()
valueSet()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
spliterator
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
keySet
-
valueSet
-
host
-
isInKeyUpdate
boolean isInKeyUpdate -
isInValueUpdate
boolean isInValueUpdate -
indexedProxy
-
-
Constructor Details
-
OrderedMultiMap
public OrderedMultiMap() -
OrderedMultiMap
public OrderedMultiMap(int capacity) -
OrderedMultiMap
-
OrderedMultiMap
-
-
Method Details
-
getIndexedProxy
-
getEntry
-
getModificationCount
public int getModificationCount() -
addingKey
-
addingNullKey
void addingNullKey(int index) -
removingKey
-
addingValue
-
addingNullValue
void addingNullValue(int index) -
removingValue
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKey
in interfaceMap<K,
V>
-
containsValue
- Specified by:
containsValue
in interfaceMap<K,
V>
-
get
-
getKeyValue
-
getValueKey
-
put
-
addNullEntry
public void addNullEntry(int index) -
putEntry
-
putKeyValueEntry
-
putValueKeyEntry
-
putKeyValuePair
-
putValueKeyPair
-
putKeyValue
-
putValueKey
-
addKeyValue
-
remove
-
removeEntry
-
removeEntryIndex
boolean removeEntryIndex(int index) -
removeEntryIndex
-
removeKey
-
removeValue
-
putAll
-
putAllKeyValues
-
putAllValueKeys
-
clear
public void clear() -
keySet
-
values
-
valueSet
-
keys
-
getKey
-
getValue
-
entrySet
-
valueIterator
-
reversedValueIterator
-
valueIterable
-
reversedValueIterable
-
keyIterator
-
reversedKeyIterator
-
keyIterable
-
reversedKeyIterable
-
entrySetIterator
-
reversedEntrySetIterator
-
entrySetIterable
-
reversedEntrySetIterable
-
getKeyValueUnionSet
-
getKeyValueIntersectionSet
-
iterator
-
forEach
-
keyValueEntrySet
-
equals
-
hashCode
public int hashCode()
-