Package org.commonmark.node
Class DefinitionMap<D>
java.lang.Object
org.commonmark.node.DefinitionMap<D>
- Type Parameters:
D
- the type of value
A map that can be used to store and look up reference definitions by a label. The labels are case-insensitive and
normalized, the same way as for
LinkReferenceDefinition
nodes.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
type
-
definitions
-
-
Constructor Details
-
DefinitionMap
-
-
Method Details
-
getType
-
addAll
-
putIfAbsent
Store a new definition unless one is already in the map. If there is no definition for that label yet, return null. Otherwise, return the existing definition.The label is normalized by the definition map before storing.
-
get
Look up a definition by label. The label is normalized by the definition map before lookup.- Returns:
- the value or null
-
keySet
-
values
-