Package tech.ytsaurus.ysontree
Class YTreeMapNodeImpl
- java.lang.Object
-
- tech.ytsaurus.ysontree.YTreeNodeImpl
-
- tech.ytsaurus.ysontree.YTreeMapNodeImpl
-
- All Implemented Interfaces:
java.lang.Iterable<java.util.Map.Entry<java.lang.String,YTreeNode>>
,YTreeCompositeNode<java.util.Map.Entry<java.lang.String,YTreeNode>>
,YTreeMapNode
,YTreeNode
public class YTreeMapNodeImpl extends YTreeNodeImpl implements YTreeMapNode
-
-
Constructor Summary
Constructors Constructor Description YTreeMapNodeImpl(java.util.Map<java.lang.String,YTreeNode> attributes)
YTreeMapNodeImpl(java.util.Map<java.lang.String,YTreeNode> data, java.util.Map<java.lang.String,YTreeNode> attributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,YTreeNode>
asMap()
Get map value assuming node contains it.void
clear()
boolean
containsKey(java.lang.String key)
boolean
equals(java.lang.Object another)
java.util.Optional<YTreeNode>
get(java.lang.String key)
int
hashCode()
java.util.Iterator<java.util.Map.Entry<java.lang.String,YTreeNode>>
iterator()
java.util.Set<java.lang.String>
keys()
java.util.Optional<YTreeNode>
put(java.lang.String key, YTreeNode value)
void
putAll(java.util.Map<? extends java.lang.String,? extends YTreeNode> data)
java.util.Optional<YTreeNode>
remove(java.lang.String key)
int
size()
java.util.Collection<YTreeNode>
values()
-
Methods inherited from class tech.ytsaurus.ysontree.YTreeNodeImpl
clearAttributes, containsAttribute, containsAttributes, equalsBase, getAttribute, getAttributeOrThrow, getAttributeOrThrow, getAttributes, hashCodeBase, putAttribute, removeAttribute, toBinary, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface tech.ytsaurus.ysontree.YTreeCompositeNode
isEmpty
-
Methods inherited from interface tech.ytsaurus.ysontree.YTreeMapNode
getBool, getBoolO, getBytes, getBytesO, getDouble, getDoubleO, getFilterNull, getInt, getIntO, getList, getListO, getLong, getLongO, getMap, getMapO, getOrDefault, getOrThrow, getOrThrow, getString, getStringO, toMapBuilder
-
Methods inherited from interface tech.ytsaurus.ysontree.YTreeNode
asList, attributeKeys, attributeValues, booleanNode, boolValue, bytesValue, cast, clearAttributes, containsAttribute, containsAttributes, doubleNode, doubleValue, entityNode, floatValue, getAttribute, getAttributeOrThrow, getAttributeOrThrow, getAttributes, integerNode, intValue, isBooleanNode, isDoubleNode, isEntityNode, isIntegerNode, isListNode, isMapNode, isStringNode, listNode, longValue, mapNode, putAttribute, removeAttribute, scalarNode, stringNode, stringValue, toBinary
-
-
-
-
Method Detail
-
asMap
public java.util.Map<java.lang.String,YTreeNode> asMap()
Description copied from interface:YTreeNode
Get map value assuming node contains it.
-
containsKey
public boolean containsKey(java.lang.String key)
- Specified by:
containsKey
in interfaceYTreeMapNode
-
clear
public void clear()
- Specified by:
clear
in interfaceYTreeCompositeNode<java.util.Map.Entry<java.lang.String,YTreeNode>>
-
remove
public java.util.Optional<YTreeNode> remove(java.lang.String key)
- Specified by:
remove
in interfaceYTreeMapNode
-
put
public java.util.Optional<YTreeNode> put(java.lang.String key, YTreeNode value)
- Specified by:
put
in interfaceYTreeMapNode
-
putAll
public void putAll(java.util.Map<? extends java.lang.String,? extends YTreeNode> data)
- Specified by:
putAll
in interfaceYTreeMapNode
-
iterator
public java.util.Iterator<java.util.Map.Entry<java.lang.String,YTreeNode>> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<java.util.Map.Entry<java.lang.String,YTreeNode>>
-
size
public int size()
- Specified by:
size
in interfaceYTreeCompositeNode<java.util.Map.Entry<java.lang.String,YTreeNode>>
-
keys
public java.util.Set<java.lang.String> keys()
- Specified by:
keys
in interfaceYTreeMapNode
-
values
public java.util.Collection<YTreeNode> values()
- Specified by:
values
in interfaceYTreeMapNode
-
get
public java.util.Optional<YTreeNode> get(java.lang.String key)
- Specified by:
get
in interfaceYTreeMapNode
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object another)
- Overrides:
equals
in classjava.lang.Object
-
-