Package tech.ytsaurus.ysontree
Class YTreeIntegerNodeImpl
- java.lang.Object
-
- tech.ytsaurus.ysontree.YTreeNodeImpl
-
- tech.ytsaurus.ysontree.YTreeIntegerNodeImpl
-
- All Implemented Interfaces:
YTreeIntegerNode,YTreeNode,YTreeScalarNode<java.lang.Long>
public class YTreeIntegerNodeImpl extends YTreeNodeImpl implements YTreeIntegerNode
-
-
Constructor Summary
Constructors Constructor Description YTreeIntegerNodeImpl(boolean signed, long value, java.util.Map<java.lang.String,YTreeNode> attributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object another)java.lang.LonggetBoxedValue()longgetLong()inthashCode()booleanisSigned()longsetLong(long newValue)Set signed long value.longsetUnsignedLong(long newValue)Set unsigned long value.-
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.YTreeIntegerNode
getInt
-
Methods inherited from interface tech.ytsaurus.ysontree.YTreeNode
asList, 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
-
YTreeIntegerNodeImpl
public YTreeIntegerNodeImpl(boolean signed, long value, @Nullable java.util.Map<java.lang.String,YTreeNode> attributes)
-
-
Method Detail
-
isSigned
public boolean isSigned()
- Specified by:
isSignedin interfaceYTreeIntegerNode
-
getLong
public long getLong()
- Specified by:
getLongin interfaceYTreeIntegerNode
-
setLong
public long setLong(long newValue)
Description copied from interface:YTreeIntegerNodeSet signed long value.- Specified by:
setLongin interfaceYTreeIntegerNode
-
setUnsignedLong
public long setUnsignedLong(long newValue)
Description copied from interface:YTreeIntegerNodeSet unsigned long value.- Specified by:
setUnsignedLongin interfaceYTreeIntegerNode
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object another)
- Overrides:
equalsin classjava.lang.Object
-
getBoxedValue
@Nonnull public java.lang.Long getBoxedValue()
- Specified by:
getBoxedValuein interfaceYTreeScalarNode<java.lang.Long>
-
-