Class DecimalOriginNode

java.lang.Object
tools.jackson.databind.JacksonSerializable.Base
tools.jackson.databind.JsonNode
tools.jackson.databind.node.BaseJsonNode
tools.jackson.databind.node.ValueNode
tools.jackson.databind.node.NumericNode
tools.jackson.databind.node.NumericFPNode
tools.jackson.databind.node.DecimalNode
dev.frostlake.values.DecimalOriginNode
All Implemented Interfaces:
Serializable, Iterable<tools.jackson.databind.JsonNode>, tools.jackson.core.TreeNode, tools.jackson.databind.JacksonSerializable

public final class DecimalOriginNode extends tools.jackson.databind.node.DecimalNode
A whole number read from a scaled NUMBER — 3.00 out of a NUMBER(10,2) — which keeps the DECIMAL kind inside a VARIANT. Its text is the descaled 3 every surface prints, and it equals the INTEGER 3, but TYPEOF answers DECIMAL, IS_INTEGER false and AS_INTEGER NULL, as on the account: the kind follows the number's own scale, not its value. Only this node class remembers it, so a variant read back from its text is an INTEGER, as PARSE_JSON('3.00') is on the account too.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class tools.jackson.databind.JsonNode

    tools.jackson.databind.JsonNode.OverwriteMode

    Nested classes/interfaces inherited from interface tools.jackson.databind.JacksonSerializable

    tools.jackson.databind.JacksonSerializable.Base
  • Field Summary

    Fields inherited from class tools.jackson.databind.node.DecimalNode

    _value, ZERO

    Fields inherited from class tools.jackson.databind.node.ValueNode

    BD_MAX_INTEGER, BD_MAX_LONG, BD_MAX_SHORT, BD_MIN_INTEGER, BD_MIN_LONG, BD_MIN_SHORT, BI_MAX_INTEGER, BI_MAX_LONG, BI_MAX_SHORT, BI_MIN_INTEGER, BI_MIN_LONG, BI_MIN_SHORT, MISSING

    Fields inherited from class tools.jackson.databind.node.BaseJsonNode

    OPT_FALSE, OPT_TRUE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class tools.jackson.databind.node.DecimalNode

    _asBigIntegerValueUnchecked, _asDecimalValueUnchecked, _asIntValueUnchecked, _asLongValueUnchecked, _asShortValueUnchecked, _asString, asDecimal, asDecimal, asDecimalOpt, asDouble, asDouble, asDoubleOpt, asFloat, asFloat, asFloatOpt, decimalValue, decimalValue, decimalValueOpt, doubleValue, doubleValue, doubleValueOpt, equals, floatValue, floatValue, floatValueOpt, hasFractionalPart, hashCode, inIntRange, inLongRange, inShortRange, isBigDecimal, isNaN, numberType, numberValue, serialize, valueOf

    Methods inherited from class tools.jackson.databind.node.NumericFPNode

    asBigInteger, asBigInteger, asBigIntegerOpt, asInt, asInt, asIntOpt, asLong, asLong, asLongOpt, asShort, asShort, asShortOpt, asToken, bigIntegerValue, bigIntegerValue, bigIntegerValueOpt, canConvertToExactIntegral, canConvertToInt, canConvertToLong, canConvertToShort, intValue, intValue, intValueOpt, isFloatingPointNumber, longValue, longValue, longValueOpt, shortValue, shortValue, shortValueOpt

    Methods inherited from class tools.jackson.databind.node.NumericNode

    _valueDesc, deepCopy, getNodeType

    Methods inherited from class tools.jackson.databind.node.ValueNode

    _at, findParent, findParents, findValue, findValues, findValuesAsString, get, get, has, has, hasNonNull, hasNonNull, isEmpty, path, path, serializeWithType

    Methods inherited from class tools.jackson.databind.node.BaseJsonNode

    _asBoolean, _jsonPointerIfValid, _reportBigDecimalConversionNaNFail, _reportBigIntegerConversionFractionFail, _reportBigIntegerConversionNaNFail, _reportCoercionFail, _reportCoercionFail, _reportConversionFail, _reportDoubleConversionRangeFail, _reportFloatConversionRangeFail, _reportIntConversionFractionFail, _reportIntConversionNaNFail, _reportIntConversionRangeFail, _reportLongConversionFractionFail, _reportLongConversionNaNFail, _reportLongConversionRangeFail, _reportShortConversionFractionFail, _reportShortConversionRangeFail, _reportWrongNodeType, _withArray, _withObject, _withXxxMayReplace, _withXxxVerifyReplace, asArray, asArrayOpt, asBoolean, asBoolean, asBooleanOpt, asObject, asObjectOpt, asString, asString, asStringOpt, binaryValue, booleanValue, booleanValue, booleanValueOpt, findPath, isEmbeddedValue, isMissingNode, required, required, stringValue, stringValue, stringValueOpt, toPrettyString, toString, traverse, withArray, withObject

    Methods inherited from class tools.jackson.databind.JsonNode

    _reportRequiredViolation, _reportUnsupportedOperation, _this, asOptional, asText, asText, at, at, equals, findParents, findValues, findValuesAsString, forEachEntry, isArray, isBigInteger, isBinary, isBoolean, isContainer, isDouble, isFloat, isInt, isIntegralNumber, isLong, isNull, isNumber, isObject, isPojo, isShort, isString, isTextual, isValueNode, iterator, map, missingAs, missingAs, nullAs, nullAs, optional, optional, properties, propertyNames, propertyStream, require, requiredAt, requiredAt, requireNonNull, size, spliterator, textValue, values, valueStream, withArray, withArray, withArray, withArrayProperty, withObject, withObject, withObject, withObjectProperty

    Methods inherited from class tools.jackson.databind.JacksonSerializable.Base

    isEmpty

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.lang.Iterable

    forEach
  • Constructor Details

    • DecimalOriginNode

      public DecimalOriginNode(BigDecimal whole)
      Parameters:
      whole - the value, at scale 0