Package org.opendaylight.yangtools.yang.data.spi.node
package org.opendaylight.yangtools.yang.data.spi.node
Various bits and pieces useful when dealing with
NormalizedNodes. Most visible here are convenience methods
for instantiating immutable implementations, which come in two flavors
- direct instantiations via
ImmutableNodesmethods NormalizedNode.Builders exposed via theNormalizedNode.BuilderFactoryavailable fromImmutableNodes.builderFactory()
Another bit of convenience are InterningLeafNodeBuilder and InterningLeafSetNodeBuilder, which
indirect instantiations through an Interner -- this is useful when the set of
allowed values has been determined to have a sufficiently-low cardinality, in which case these will reuse value
nodes.
-
ClassDescriptionCloneableMap<K,
V> Utilities for creating immutable implementations of variousNormalizedNodes.ALeafNode.BuilderinterningLeafNodes via anInterner.Utility class for sharing instances ofLeafSetEntryNodes which have low cardinality -- e.g.Support utilities for dealing with Maps which would normally holdDataContainerChildvalues, but are modified to eliminateLeafNodeinstances.