| Package | Description |
|---|---|
| ch.jalu.typeresolver.numbers |
| Modifier and Type | Class and Description |
|---|---|
class |
StandardNumberType
NumberType implementations for standard Java number types: byte, short, integer, long, float, double,
BigInteger and BigDecimal. |
| Modifier and Type | Field and Description |
|---|---|
static NumberType<AtomicInteger> |
MoreNumberTypes.ATOMIC_INTEGER
AtomicInteger (same value range as
StandardNumberType.INTEGER). |
static NumberType<AtomicLong> |
MoreNumberTypes.ATOMIC_LONG
AtomicLong (same value range as
StandardNumberType.LONG). |
static NumberType<Character> |
MoreNumberTypes.CHARACTER
Character: [0, 65535].
|
static NumberType<BigDecimal> |
StandardNumberType.TYPE_BIG_DECIMAL |
static NumberType<BigInteger> |
StandardNumberType.TYPE_BIG_INTEGER |
static NumberType<Byte> |
StandardNumberType.TYPE_BYTE |
static NumberType<Double> |
StandardNumberType.TYPE_DOUBLE |
static NumberType<Float> |
StandardNumberType.TYPE_FLOAT |
static NumberType<Integer> |
StandardNumberType.TYPE_INTEGER |
static NumberType<Long> |
StandardNumberType.TYPE_LONG |
static NumberType<Short> |
StandardNumberType.TYPE_SHORT |
| Modifier and Type | Method and Description |
|---|---|
static <T> @Nullable NumberType<T> |
NumberTypes.from(@Nullable Class<T> clazz)
Returns, if applicable, the
NumberType instance from StandardNumberType and
MoreNumberTypes that corresponds to the provided class, null otherwise. |
static <T extends Number> |
StandardNumberType.fromNumberClass(@Nullable Class<T> clazz)
Returns the instance that corresponds to this class, or null if not applicable.
|
| Modifier and Type | Method and Description |
|---|---|
static Stream<NumberType<?>> |
NumberTypes.streamThroughAll()
Provides a stream of all
NumberType implementations provided by this library. |
static Stream<NumberType<? extends Number>> |
StandardNumberType.streamThroughAll()
Creates a stream of all number types in this enum, typed as
NumberType. |
static Stream<NumberType<? extends Number>> |
StandardNumberType.streamThroughPrimitiveTypes()
Creates a stream of the number type instances that represent one of the six Java number types that
are associated with a primitive type: byte, short, int, long, float, and double.
|
| Modifier and Type | Method and Description |
|---|---|
default boolean |
NumberType.supportsAllValuesOf(NumberType<?> other)
Convenience method for
ValueRange.supportsAllValuesOf(ch.jalu.typeresolver.numbers.ValueRange<?>). |
Copyright © 2023. All rights reserved.