public class DefaultNNumberElement extends AbstractNElement implements NNumberElement
| Constructor and Description |
|---|
DefaultNNumberElement(NElementType type,
Number value) |
DefaultNNumberElement(NElementType type,
Number value,
NNumberLayout layout,
String suffix) |
DefaultNNumberElement(NElementType type,
Number value,
NNumberLayout layout,
String suffix,
NElementAnnotation[] annotations,
NElementComments comments) |
| Modifier and Type | Method and Description |
|---|---|
NOptional<BigDecimal> |
asBigDecimalValue() |
NOptional<BigInteger> |
asBigIntValue() |
NLiteral |
asLiteral() |
NOptional<NNumberElement> |
asNumber() |
NPrimitiveElementBuilder |
builder() |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isBigDecimal() |
boolean |
isBigInt() |
boolean |
isBigNumber() |
boolean |
isBlank() |
boolean |
isBoolean() |
boolean |
isByte() |
boolean |
isDecimalNumber() |
boolean |
isDouble() |
boolean |
isEmpty() |
boolean |
isFloat() |
boolean |
isFloatingNumber() |
boolean |
isInstant() |
boolean |
isInt() |
boolean |
isLong() |
boolean |
isNull() |
boolean |
isNumber() |
boolean |
isOrdinalNumber() |
boolean |
isShort() |
boolean |
isString() |
NNumberLayout |
numberLayout() |
String |
numberSuffix() |
Number |
numberValue() |
List<NElement> |
resolveAll(String pattern) |
String |
toString() |
String |
toString(boolean compact) |
Object |
value() |
annotations, asArray, asBigComplexValue, asBooleanValue, asByteValue, asCharValue, asCustom, asDoubleComplexValue, asDoubleValue, asElementAt, asFloatComplexValue, asFloatValue, asInstantValue, asInt, asIntValue, asListContainer, asLocalDateTimeValue, asLocalDateValue, asLocalTimeValue, asLongValue, asNamed, asNumberValue, asObject, asPair, asPrimitive, asShortValue, asStr, asString, asStringValue, asUplet, comments, describe, isAnyArray, isAnyDate, isAnyMatrix, isAnyNamedArray, isAnyNamedArray, isAnyNamedMatrix, isAnyNamedMatrix, isAnyNamedObject, isAnyNamedObject, isAnyObject, isAnyParametrizedMatrix, isAnyParametrizedMatrix, isAnyString, isAnyUplet, isArray, isComplexNumber, isCustom, isListContainer, isLocalTemporal, isName, isNamed, isNamed, isNamedArray, isNamedMatrix, isNamedObject, isNamedPair, isNamedParametrizedArray, isNamedParametrizedArray, isNamedParametrizedMatrix, isNamedParametrizedObject, isNamedParametrizedObject, isNamedUplet, isNamedUplet, isObject, isPair, isParametrized, isParametrizedArray, isParametrizedMatrix, isParametrizedObject, isPrimitive, isSimplePair, isStream, isTemporal, resolve, toArray, toListContainer, toNamedArray, toNamedObject, toNamedPair, toNamedUplet, toObject, type, withDesc, wrapIntoArray, wrapIntoNamedArray, wrapIntoNamedObject, wrapIntoNamedPair, wrapIntoNamedUplet, wrapIntoObject, wrapIntoUpletclone, finalize, getClass, notify, notifyAll, wait, wait, waitbuilder, valueannotations, asArray, asBigComplexValue, asBigDecimalValue, asBigIntValue, asBooleanValue, asByteValue, asCharValue, asCustom, asDoubleComplexValue, asDoubleValue, asElementAt, asFloatComplexValue, asFloatValue, asInstantValue, asInt, asIntValue, asListContainer, asLiteral, asLocalDateTimeValue, asLocalDateValue, asLocalTimeValue, asLongValue, asNamed, asNumberValue, asObject, asPair, asPrimitive, asShortValue, asStr, asString, asStringValue, asUplet, comments, isAnyArray, isAnyDate, isAnyMatrix, isAnyNamedArray, isAnyNamedArray, isAnyNamedMatrix, isAnyNamedMatrix, isAnyNamedObject, isAnyNamedObject, isAnyObject, isAnyParametrizedMatrix, isAnyParametrizedMatrix, isAnyString, isAnyUplet, isArray, isBigDecimal, isBigInt, isBigNumber, isBlank, isBoolean, isByte, isComplexNumber, isCustom, isDecimalNumber, isDouble, isEmpty, isFloat, isFloatingNumber, isInstant, isInt, isListContainer, isLocalTemporal, isLong, isName, isNamed, isNamed, isNamedArray, isNamedMatrix, isNamedObject, isNamedPair, isNamedParametrizedArray, isNamedParametrizedArray, isNamedParametrizedMatrix, isNamedParametrizedObject, isNamedParametrizedObject, isNamedUplet, isNamedUplet, isNull, isNumber, isObject, isOrdinalNumber, isPair, isParametrized, isParametrizedArray, isParametrizedMatrix, isParametrizedObject, isPrimitive, isShort, isSimplePair, isStream, isString, isTemporal, resolve, resolveAll, toArray, toListContainer, toNamedArray, toNamedObject, toNamedPair, toNamedUplet, toObject, toString, type, wrapIntoArray, wrapIntoNamedArray, wrapIntoNamedObject, wrapIntoNamedPair, wrapIntoNamedUplet, wrapIntoObject, wrapIntoUpletdescribe, withDescfirstNonBlank, firstNonBlank, firstNonBlank, isBlank, isBlank, isBlank, isBlank, isBlank, isNonBlankpublic DefaultNNumberElement(NElementType type, Number value)
public DefaultNNumberElement(NElementType type, Number value, NNumberLayout layout, String suffix)
public DefaultNNumberElement(NElementType type, Number value, NNumberLayout layout, String suffix, NElementAnnotation[] annotations, NElementComments comments)
public Number numberValue()
numberValue in interface NNumberElementpublic NNumberLayout numberLayout()
numberLayout in interface NNumberElementpublic String numberSuffix()
numberSuffix in interface NNumberElementpublic NOptional<NNumberElement> asNumber()
asNumber in interface NElementasNumber in class AbstractNElementpublic List<NElement> resolveAll(String pattern)
resolveAll in interface NElementresolveAll in class AbstractNElementpublic Object value()
value in interface NPrimitiveElementpublic boolean isBoolean()
isBoolean in interface NElementisBoolean in class AbstractNElementpublic boolean isNull()
isNull in interface NElementisNull in class AbstractNElementpublic boolean isByte()
isByte in interface NElementisByte in class AbstractNElementpublic boolean isInt()
isInt in interface NElementisInt in class AbstractNElementpublic boolean isDecimalNumber()
isDecimalNumber in interface NElementisDecimalNumber in class AbstractNElementpublic boolean isBigNumber()
isBigNumber in interface NElementisBigNumber in class AbstractNElementpublic boolean isBigDecimal()
isBigDecimal in interface NElementisBigDecimal in class AbstractNElementpublic boolean isBigInt()
isBigInt in interface NElementisBigInt in class AbstractNElementpublic boolean isString()
isString in interface NElementisString in class AbstractNElementpublic boolean isLong()
isLong in interface NElementisLong in class AbstractNElementpublic boolean isShort()
isShort in interface NElementisShort in class AbstractNElementpublic boolean isFloat()
isFloat in interface NElementisFloat in class AbstractNElementpublic boolean isDouble()
isDouble in interface NElementisDouble in class AbstractNElementpublic boolean isInstant()
isInstant in interface NElementisInstant in class AbstractNElementpublic boolean isEmpty()
isEmpty in interface NElementisEmpty in class AbstractNElementpublic boolean isBlank()
isBlank in interface NElementisBlank in interface NBlankableisBlank in class AbstractNElementpublic NOptional<BigInteger> asBigIntValue()
asBigIntValue in interface NElementasBigIntValue in class AbstractNElementpublic NOptional<BigDecimal> asBigDecimalValue()
asBigDecimalValue in interface NElementasBigDecimalValue in class AbstractNElementpublic boolean isNumber()
isNumber in interface NElementisNumber in class AbstractNElementpublic boolean isFloatingNumber()
isFloatingNumber in interface NElementisFloatingNumber in class AbstractNElementpublic boolean isOrdinalNumber()
isOrdinalNumber in interface NElementisOrdinalNumber in class AbstractNElementpublic boolean equals(Object o)
equals in class AbstractNElementpublic int hashCode()
hashCode in class AbstractNElementpublic NPrimitiveElementBuilder builder()
builder in interface NElementbuilder in interface NPrimitiveElementbuilder in class AbstractNElementpublic NLiteral asLiteral()
asLiteral in interface NElementasLiteral in class AbstractNElementCopyright © 2025 vpc open source initiative. All rights reserved.