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.voidclear()booleancontainsKey(java.lang.String key)booleanequals(java.lang.Object another)java.util.Optional<YTreeNode>get(java.lang.String key)inthashCode()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)voidputAll(java.util.Map<? extends java.lang.String,? extends YTreeNode> data)java.util.Optional<YTreeNode>remove(java.lang.String key)intsize()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:YTreeNodeGet map value assuming node contains it.
-
containsKey
public boolean containsKey(java.lang.String key)
- Specified by:
containsKeyin interfaceYTreeMapNode
-
clear
public void clear()
- Specified by:
clearin interfaceYTreeCompositeNode<java.util.Map.Entry<java.lang.String,YTreeNode>>
-
remove
public java.util.Optional<YTreeNode> remove(java.lang.String key)
- Specified by:
removein interfaceYTreeMapNode
-
put
public java.util.Optional<YTreeNode> put(java.lang.String key, YTreeNode value)
- Specified by:
putin interfaceYTreeMapNode
-
putAll
public void putAll(java.util.Map<? extends java.lang.String,? extends YTreeNode> data)
- Specified by:
putAllin interfaceYTreeMapNode
-
iterator
public java.util.Iterator<java.util.Map.Entry<java.lang.String,YTreeNode>> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<java.util.Map.Entry<java.lang.String,YTreeNode>>
-
size
public int size()
- Specified by:
sizein interfaceYTreeCompositeNode<java.util.Map.Entry<java.lang.String,YTreeNode>>
-
keys
public java.util.Set<java.lang.String> keys()
- Specified by:
keysin interfaceYTreeMapNode
-
values
public java.util.Collection<YTreeNode> values()
- Specified by:
valuesin interfaceYTreeMapNode
-
get
public java.util.Optional<YTreeNode> get(java.lang.String key)
- Specified by:
getin interfaceYTreeMapNode
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object another)
- Overrides:
equalsin classjava.lang.Object
-
-