public class Readers extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Readers.AtomicBooleanReader |
static class |
Readers.AtomicIntegerReader |
static class |
Readers.AtomicLongReader |
static class |
Readers.BigDecimalReader |
static class |
Readers.BigIntegerReader |
static class |
Readers.CalendarReader |
static class |
Readers.ClassReader |
static class |
Readers.DateReader |
static class |
Readers.EnumReader |
static class |
Readers.LocaleReader |
static class |
Readers.RecordReader |
static class |
Readers.SqlDateReader |
static class |
Readers.StringBufferReader |
static class |
Readers.StringBuilderReader |
static class |
Readers.StringReader |
static class |
Readers.TimestampReader |
static class |
Readers.URLReader |
static class |
Readers.UUIDReader |
Modifier and Type | Method and Description |
---|---|
static BigDecimal |
bigDecimalFrom(Object value) |
static BigInteger |
bigIntegerFrom(Object value) |
public static BigInteger bigIntegerFrom(Object value)
value
- to be converted to BigInteger. Can be a null which will return null. Can be
BigInteger in which case it will be returned as-is. Can also be String, BigDecimal,
Boolean (which will be returned as BigInteger.ZERO or .ONE), byte, short, int, long, float,
or double. If an unknown type is passed in, an exception will be thrown.public static BigDecimal bigDecimalFrom(Object value)
value
- to be converted to BigDecimal. Can be a null which will return null. Can be
BigDecimal in which case it will be returned as-is. Can also be String, BigInteger,
Boolean (which will be returned as BigDecimal.ZERO or .ONE), byte, short, int, long, float,
or double. If an unknown type is passed in, an exception will be thrown.Copyright © 2023. All rights reserved.