Package tech.ytsaurus.ysontree
Class YTreeListNodeImpl
- java.lang.Object
-
- tech.ytsaurus.ysontree.YTreeNodeImpl
-
- tech.ytsaurus.ysontree.YTreeListNodeImpl
-
- All Implemented Interfaces:
java.lang.Iterable<YTreeNode>,YTreeCompositeNode<YTreeNode>,YTreeListNode,YTreeNode
public class YTreeListNodeImpl extends YTreeNodeImpl implements YTreeListNode
-
-
Constructor Summary
Constructors Constructor Description YTreeListNodeImpl(java.util.Map<java.lang.String,YTreeNode> attributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(YTreeNode value)voidaddAll(java.util.List<YTreeNode> values)java.util.List<YTreeNode>asList()Get list value assuming node contains it.voidclear()booleanequals(java.lang.Object another)YTreeNodeget(int index)inthashCode()java.util.Iterator<YTreeNode>iterator()YTreeNoderemove(int index)YTreeNodeset(int index, YTreeNode value)intsize()-
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.YTreeListNode
getBool, getBytes, getDouble, getInt, getList, getLong, getMap, getString, toListBuilder
-
Methods inherited from interface tech.ytsaurus.ysontree.YTreeNode
asMap, 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
-
-
-
-
Constructor Detail
-
YTreeListNodeImpl
public YTreeListNodeImpl(@Nullable java.util.Map<java.lang.String,YTreeNode> attributes)
-
-
Method Detail
-
size
public int size()
- Specified by:
sizein interfaceYTreeCompositeNode<YTreeNode>
-
clear
public void clear()
- Specified by:
clearin interfaceYTreeCompositeNode<YTreeNode>
-
get
public YTreeNode get(int index)
- Specified by:
getin interfaceYTreeListNode
-
set
public YTreeNode set(int index, YTreeNode value)
- Specified by:
setin interfaceYTreeListNode
-
remove
public YTreeNode remove(int index)
- Specified by:
removein interfaceYTreeListNode
-
add
public void add(YTreeNode value)
- Specified by:
addin interfaceYTreeListNode
-
addAll
public void addAll(java.util.List<YTreeNode> values)
- Specified by:
addAllin interfaceYTreeListNode
-
iterator
public java.util.Iterator<YTreeNode> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<YTreeNode>
-
asList
public java.util.List<YTreeNode> asList()
Description copied from interface:YTreeNodeGet list value assuming node contains it.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object another)
- Overrides:
equalsin classjava.lang.Object
-
-