public class DefaultNLiteral extends Object implements NLiteral
| Modifier and Type | Field and Description |
|---|---|
static DateTimeFormatter[] |
DATE_FORMATS |
static DateTimeFormatter[] |
DATE_TIME_FORMATS |
static DateTimeFormatter[] |
TIME_FORMATS |
| Constructor and Description |
|---|
DefaultNLiteral(Object value)
Default n literal.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitofBigComplex, ofBigDecimal, ofBigInt, ofBoolean, ofByte, ofChar, ofDouble, ofDoubleComplex, ofFloat, ofFloatComplex, ofInstant, ofInt, ofLocalDate, ofLocalDateTime, ofLocalTime, ofLong, ofNumber, ofObject, ofShort, ofStringfirstNonBlank, firstNonBlank, firstNonBlank, firstNonBlankLazy, firstNonBlankLazy, isBlank, isBlank, isBlank, isBlank, isBlank, isNonBlankpublic static final DateTimeFormatter[] DATE_TIME_FORMATS
public static final DateTimeFormatter[] TIME_FORMATS
public static final DateTimeFormatter[] DATE_FORMATS
public DefaultNLiteral(Object value)
value - valuepublic static NOptional<Instant> parseInstant(String text)
text - textpublic NElementType type()
public NOptional<NFloatComplex> asFloatComplex()
asFloatComplex in interface NLiteralpublic NOptional<NDoubleComplex> asDoubleComplex()
asDoubleComplex in interface NLiteralpublic NOptional<NBigComplex> asBigComplex()
asBigComplex in interface NLiteralpublic NOptional<LocalTime> asLocalTime()
asLocalTime in interface NLiteralpublic NOptional<LocalDateTime> asLocalDateTime()
asLocalDateTime in interface NLiteralpublic NOptional<LocalDate> asLocalDate()
asLocalDate in interface NLiteralpublic boolean isDecimalNumber()
isDecimalNumber in interface NLiteralpublic boolean isBigNumber()
isBigNumber in interface NLiteralpublic boolean isBigDecimal()
isBigDecimal in interface NLiteralpublic String toStringLiteral()
toStringLiteral in interface NLiteralpublic NOptional<String> asStringAt(int index)
asStringAt in interface NLiteralpublic NOptional<Double> asDoubleAt(int index)
asDoubleAt in interface NLiteralpublic NLiteral asLiteralAt(int index)
asLiteralAt in interface NLiteralpublic NOptional<Object> asObjectAt(int index)
asObjectAt in interface NLiteralpublic boolean isBlank()
isBlank in interface NBlankableisBlank in interface NLiteralpublic NOptional<BigInteger> asBigInt()
public NOptional<BigDecimal> asBigDecimal()
asBigDecimal in interface NLiteralpublic boolean isSupportedType(Class<?> type)
isSupportedType in interface NLiteralpublic boolean isComplexNumber()
isComplexNumber in interface NLiteralpublic boolean isTemporal()
isTemporal in interface NLiteralpublic boolean isLocalTemporal()
isLocalTemporal in interface NLiteralpublic boolean isOrdinalNumber()
isOrdinalNumber in interface NLiteralpublic boolean isFloatingNumber()
isFloatingNumber in interface NLiteralCopyright © 2026 vpc open source initiative. All rights reserved.