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 void
add(YTreeNode value)
void
addAll(java.util.List<YTreeNode> values)
java.util.List<YTreeNode>
asList()
Get list value assuming node contains it.void
clear()
boolean
equals(java.lang.Object another)
YTreeNode
get(int index)
int
hashCode()
java.util.Iterator<YTreeNode>
iterator()
YTreeNode
remove(int index)
YTreeNode
set(int index, YTreeNode value)
int
size()
-
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:
size
in interfaceYTreeCompositeNode<YTreeNode>
-
clear
public void clear()
- Specified by:
clear
in interfaceYTreeCompositeNode<YTreeNode>
-
get
public YTreeNode get(int index)
- Specified by:
get
in interfaceYTreeListNode
-
set
public YTreeNode set(int index, YTreeNode value)
- Specified by:
set
in interfaceYTreeListNode
-
remove
public YTreeNode remove(int index)
- Specified by:
remove
in interfaceYTreeListNode
-
add
public void add(YTreeNode value)
- Specified by:
add
in interfaceYTreeListNode
-
addAll
public void addAll(java.util.List<YTreeNode> values)
- Specified by:
addAll
in interfaceYTreeListNode
-
iterator
public java.util.Iterator<YTreeNode> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<YTreeNode>
-
asList
public java.util.List<YTreeNode> asList()
Description copied from interface:YTreeNode
Get list value assuming node contains it.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object another)
- Overrides:
equals
in classjava.lang.Object
-
-