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 boolean
equals(java.lang.Object another)
java.lang.Long
getBoxedValue()
long
getLong()
int
hashCode()
boolean
isSigned()
long
setLong(long newValue)
Set signed long value.long
setUnsignedLong(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:
isSigned
in interfaceYTreeIntegerNode
-
getLong
public long getLong()
- Specified by:
getLong
in interfaceYTreeIntegerNode
-
setLong
public long setLong(long newValue)
Description copied from interface:YTreeIntegerNode
Set signed long value.- Specified by:
setLong
in interfaceYTreeIntegerNode
-
setUnsignedLong
public long setUnsignedLong(long newValue)
Description copied from interface:YTreeIntegerNode
Set unsigned long value.- Specified by:
setUnsignedLong
in interfaceYTreeIntegerNode
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object another)
- Overrides:
equals
in classjava.lang.Object
-
getBoxedValue
@Nonnull public java.lang.Long getBoxedValue()
- Specified by:
getBoxedValue
in interfaceYTreeScalarNode<java.lang.Long>
-
-