public final class DecimalUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
extractSecondsAndNanos(BigDecimal seconds,
BiFunction<Long,Integer,T> convert)
Deprecated.
Since 2.19: use
extractSecondsAndNanos(BigDecimal, BiFunction, boolean) instead. |
static <T> T |
extractSecondsAndNanos(BigDecimal seconds,
BiFunction<Long,Integer,T> convert,
boolean negativeAdjustment)
Extracts the seconds and nanoseconds component of
seconds as long and int
values, passing them to the given converter. |
static BigDecimal |
toBigDecimal(long seconds,
int nanoseconds)
Factory method for constructing
BigDecimal out of second, nano-second
components. |
static String |
toDecimal(long seconds,
int nanoseconds) |
public static String toDecimal(long seconds, int nanoseconds)
public static BigDecimal toBigDecimal(long seconds, int nanoseconds)
BigDecimal out of second, nano-second
components.@Deprecated public static <T> T extractSecondsAndNanos(BigDecimal seconds, BiFunction<Long,Integer,T> convert)
extractSecondsAndNanos(BigDecimal, BiFunction, boolean) instead.seconds as long and int
values, passing them to the given converter. The implementation avoids latency issues present
on some JRE releases.public static <T> T extractSecondsAndNanos(BigDecimal seconds, BiFunction<Long,Integer,T> convert, boolean negativeAdjustment)
seconds as long and int
values, passing them to the given converter. The implementation avoids latency issues present
on some JRE releases.Copyright © 2025 FasterXML. All rights reserved.