protected static final class ImmutableOrderedLeafSetNodeBuilder.ImmutableOrderedLeafSetNode<T> extends AbstractImmutableNormalizedNode<YangInstanceIdentifier.NodeIdentifier,Collection<LeafSetEntryNode<T>>> implements OrderedLeafSetNode<T>
Modifier and Type | Method and Description |
---|---|
LeafSetEntryNode<T> |
getChild(int position)
Returns child node by position.
|
Optional<LeafSetEntryNode<T>> |
getChild(YangInstanceIdentifier.NodeWithValue child)
Returns child node identified by provided key.
|
int |
getSize()
Returns count of child nodes.
|
Collection<LeafSetEntryNode<T>> |
getValue()
Value of node.
|
protected boolean |
valueEquals(AbstractImmutableNormalizedNode<?,?> other) |
protected int |
valueHashCode() |
addToStringAttributes, equals, getIdentifier, getNodeType, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getIdentifier
getIdentifier
getNodeType
public Optional<LeafSetEntryNode<T>> getChild(YangInstanceIdentifier.NodeWithValue child)
NormalizedNodeContainer
getChild
in interface NormalizedNodeContainer<YangInstanceIdentifier.NodeIdentifier,YangInstanceIdentifier.NodeWithValue,LeafSetEntryNode<T>>
child
- Path argument identifying child nodeOptional.empty()
if child does not exists.public LeafSetEntryNode<T> getChild(int position)
OrderedNodeContainer
getChild
in interface OrderedNodeContainer<LeafSetEntryNode<T>>
position
- Position of child nodeprotected int valueHashCode()
valueHashCode
in class AbstractImmutableNormalizedNode<YangInstanceIdentifier.NodeIdentifier,Collection<LeafSetEntryNode<T>>>
protected boolean valueEquals(AbstractImmutableNormalizedNode<?,?> other)
valueEquals
in class AbstractImmutableNormalizedNode<YangInstanceIdentifier.NodeIdentifier,Collection<LeafSetEntryNode<T>>>
public int getSize()
OrderedNodeContainer
getSize
in interface OrderedNodeContainer<LeafSetEntryNode<T>>
public Collection<LeafSetEntryNode<T>> getValue()
NormalizedNode
getValue
in interface NormalizedNode<YangInstanceIdentifier.NodeIdentifier,Collection<LeafSetEntryNode<T>>>
getValue
in interface NormalizedNodeContainer<YangInstanceIdentifier.NodeIdentifier,YangInstanceIdentifier.NodeWithValue,LeafSetEntryNode<T>>
Copyright © 2019 OpenDaylight. All rights reserved.