- ch.jalu.typeresolver - package ch.jalu.typeresolver
-
- ch.jalu.typeresolver.array - package ch.jalu.typeresolver.array
-
- ch.jalu.typeresolver.classutil - package ch.jalu.typeresolver.classutil
-
- ch.jalu.typeresolver.numbers - package ch.jalu.typeresolver.numbers
-
- ch.jalu.typeresolver.primitives - package ch.jalu.typeresolver.primitives
-
- ch.jalu.typeresolver.reference - package ch.jalu.typeresolver.reference
-
- ch.jalu.typeresolver.typeimpl - package ch.jalu.typeresolver.typeimpl
-
- CHARACTER - Static variable in class ch.jalu.typeresolver.numbers.MoreNumberTypes
-
Character: [0, 65535].
- classExists(String) - Static method in class ch.jalu.typeresolver.classutil.ClassUtils
-
Returns whether the class exists and can be loaded by the current class loader.
- ClassType - Enum in ch.jalu.typeresolver.classutil
-
Enum to categorize
Class objects.
- ClassTypeCallback<R> - Class in ch.jalu.typeresolver.classutil
-
Extendable class with a method dedicated for each
ClassType, with appropriately cast method parameters.
- ClassTypeCallback() - Constructor for class ch.jalu.typeresolver.classutil.ClassTypeCallback
-
- ClassUtils - Class in ch.jalu.typeresolver.classutil
-
Various utilities to load and inspect
Class objects.
- CommonTypeUtils - Class in ch.jalu.typeresolver
-
Contains simple utility methods for Type objects.
- compareToValueRange(Number) - Method in interface ch.jalu.typeresolver.numbers.NumberType
-
Compares the given value to this type's value range, indicating whether it can be represented by this type
without loss of magnitude, or why it cannot.
- compareToValueRange(Number) - Method in enum ch.jalu.typeresolver.numbers.StandardNumberType
-
- convertIfNoLossOfMagnitude(Number) - Method in interface ch.jalu.typeresolver.numbers.NumberType
-
Converts the number to this type only if no loss of magnitude and meaning occurs, otherwise returns
an empty optional.
- convertIfNoLossOfMagnitude(Number) - Method in enum ch.jalu.typeresolver.numbers.StandardNumberType
-
Converts the number to this type only if no loss of magnitude and meaning occurs, otherwise returns
an empty optional.
- convertToBounds(Number) - Method in interface ch.jalu.typeresolver.numbers.NumberType
-
Returns a value of this type that is the closest to the given number.
- convertToBounds(Number) - Method in enum ch.jalu.typeresolver.numbers.StandardNumberType
-
Returns a value of this type that is the closest to the given number.
- convertUnsafe(Number) - Method in interface ch.jalu.typeresolver.numbers.NumberType
-
Converts the given number to this type without considering underflow or overflow.
- convertUnsafe(Number) - Method in enum ch.jalu.typeresolver.numbers.StandardNumberType
-
Converts the given number to this type without considering underflow or overflow.
- copyOf(Object, int) - Static method in class ch.jalu.typeresolver.array.ArrayUtils
-
Delegates to the appropriate method for creating a copy and returns the result.
- copyOfRange(Object, int, int) - Static method in class ch.jalu.typeresolver.array.ArrayUtils
-
Delegates to the appropriate method for creating a copy of a range and returns the result.
- create(Type, int) - Static method in class ch.jalu.typeresolver.typeimpl.GenericArrayTypeImpl
-
Wraps the given component type into an array type of the given dimension.
- createArrayClass(Class<?>) - Static method in class ch.jalu.typeresolver.array.ArrayTypeUtils
-
Returns an array class of the given component type, e.g.
- createArrayClass(Class<?>, int) - Static method in class ch.jalu.typeresolver.array.ArrayTypeUtils
-
Returns an array class of the given component type and with the given dimensions, e.g.
- createArrayType(Type) - Static method in class ch.jalu.typeresolver.array.ArrayTypeUtils
-
Returns an array class or a
GenericArrayType instance whose component type is the
componentType
argument.
- createArrayType(Type, int) - Static method in class ch.jalu.typeresolver.array.ArrayTypeUtils
-
Returns an array class or a generic array type whose component is the provided component type and
with the given dimension.
- createOwnerType(Class<?>) - Static method in class ch.jalu.typeresolver.typeimpl.ParameterizedTypeBuilder
-
Creates the appropriate Type with generic information (if needed) to be used as
owner type of a parameterized type impl with the given raw type.
- GenericArrayTypeImpl - Class in ch.jalu.typeresolver.typeimpl
-
- GenericArrayTypeImpl(Type) - Constructor for class ch.jalu.typeresolver.typeimpl.GenericArrayTypeImpl
-
- GenericArrayTypeProperties - Class in ch.jalu.typeresolver.array
-
Describes a generic array type: specifies the array dimension and the component type.
- GenericArrayTypeProperties(GenericArrayType) - Constructor for class ch.jalu.typeresolver.array.GenericArrayTypeProperties
-
Constructor: creates an instance based on the properties of the given array type.
- GenericArrayTypeProperties(Type, int) - Constructor for class ch.jalu.typeresolver.array.GenericArrayTypeProperties
-
Constructor for manual creation.
- getActualTypeArguments() - Method in class ch.jalu.typeresolver.typeimpl.ParameterizedTypeImpl
-
- getAllTypeInfos() - Method in class ch.jalu.typeresolver.TypeInfo
-
Returns all types that this wrapped type is an instance of, as TypeInfo instances.
- getAllTypes() - Method in class ch.jalu.typeresolver.TypeInfo
-
Returns all types that this wrapped type is an instance of, i.e.
- getArrayProperty(Type) - Static method in class ch.jalu.typeresolver.array.ArrayTypeUtils
-
Returns a description of the given array type, or an array property with dimension 0
if it is not an array.
- getAssociatedEnumType(Class<?>) - Static method in class ch.jalu.typeresolver.EnumUtils
-
Returns an optional with the class if it is an enum, or with the actual enum class if the given class is
a synthetic class of an enum entry.
- getClassName(Object) - Static method in class ch.jalu.typeresolver.classutil.ClassUtils
-
Returns the
class name of the object null-safely, returning "null" if the object is null.
- getComponentType() - Method in class ch.jalu.typeresolver.array.ArrayClassProperties
-
- getComponentType() - Method in interface ch.jalu.typeresolver.array.ArrayTypeProperties
-
Returns the component of the array.
- getComponentType() - Method in class ch.jalu.typeresolver.array.GenericArrayTypeProperties
-
- getComponentType() - Method in class ch.jalu.typeresolver.TypeInfo
-
Returns the array component type of this type, if applicable.
- getDefaultValue() - Method in enum ch.jalu.typeresolver.primitives.PrimitiveType
-
- getDefinitiveClass(Type) - Static method in class ch.jalu.typeresolver.CommonTypeUtils
-
Returns the Class equivalent of the type for which there is an absolute class equivalent,
i.e.
- getDimension() - Method in class ch.jalu.typeresolver.array.ArrayClassProperties
-
- getDimension() - Method in interface ch.jalu.typeresolver.array.ArrayTypeProperties
-
Returns the dimension of the array type.
- getDimension() - Method in class ch.jalu.typeresolver.array.GenericArrayTypeProperties
-
- getEnclosingType() - Method in class ch.jalu.typeresolver.TypeInfo
-
Returns a type info of the enclosing type (i.e.
- getErrorForNonFiniteValue(Number) - Static method in enum ch.jalu.typeresolver.numbers.ValueRangeComparison
-
Returns the appropriate "Unsupported" comparison entry if the given number represents a non-finite value
from Float or Double.
- getErrorForNonFiniteValue(double) - Static method in enum ch.jalu.typeresolver.numbers.ValueRangeComparison
-
Returns the appropriate "Unsupported" comparison entry if the given double represents a non-finite value
from Float or Double.
- getGenericComponentType() - Method in class ch.jalu.typeresolver.typeimpl.GenericArrayTypeImpl
-
- getLowerBounds() - Method in class ch.jalu.typeresolver.typeimpl.WildcardTypeImpl
-
- getMaxInOwnType() - Method in enum ch.jalu.typeresolver.numbers.StandardValueRange
-
- getMaxInOwnType() - Method in interface ch.jalu.typeresolver.numbers.ValueRange
-
- getMaxInOwnType() - Method in class ch.jalu.typeresolver.numbers.ValueRangeImpl
-
- getMaxValue() - Method in enum ch.jalu.typeresolver.numbers.StandardValueRange
-
- getMaxValue() - Method in interface ch.jalu.typeresolver.numbers.ValueRange
-
- getMaxValue() - Method in class ch.jalu.typeresolver.numbers.ValueRangeImpl
-
- getMinInOwnType() - Method in enum ch.jalu.typeresolver.numbers.StandardValueRange
-
- getMinInOwnType() - Method in interface ch.jalu.typeresolver.numbers.ValueRange
-
- getMinInOwnType() - Method in class ch.jalu.typeresolver.numbers.ValueRangeImpl
-
- getMinValue() - Method in enum ch.jalu.typeresolver.numbers.StandardValueRange
-
- getMinValue() - Method in interface ch.jalu.typeresolver.numbers.ValueRange
-
- getMinValue() - Method in class ch.jalu.typeresolver.numbers.ValueRangeImpl
-
- getOwnerType() - Method in class ch.jalu.typeresolver.typeimpl.ParameterizedTypeImpl
-
- getPrimitiveType() - Method in enum ch.jalu.typeresolver.primitives.PrimitiveType
-
- getRawType(ParameterizedType) - Static method in class ch.jalu.typeresolver.CommonTypeUtils
-
Convenience method which returns the raw type of the given parameterized type cast as
Class.
- getRawType() - Method in class ch.jalu.typeresolver.typeimpl.ParameterizedTypeImpl
-
- getReferenceType() - Method in enum ch.jalu.typeresolver.primitives.PrimitiveType
-
- getSafeToReadClass() - Method in class ch.jalu.typeresolver.TypeInfo
-
Returns a
Class object of the wrapped type which is safe for reading.
- getSemanticName(Object) - Static method in class ch.jalu.typeresolver.classutil.ClassUtils
-
Returns a human-friendly string representation of the given object, based on the
semantic type of the given object.
- getSemanticName(Class<?>) - Static method in class ch.jalu.typeresolver.classutil.ClassUtils
-
Returns a human-friendly string representation of the given class, or of the most meaningful associated type.
- getSemanticType(Object) - Static method in class ch.jalu.typeresolver.classutil.ClassUtils
-
Returns the "semantic type" of the given object.
- getType(Class<?>) - Static method in class ch.jalu.typeresolver.classutil.ClassUtils
-
Returns the type of the given class (see
ClassType).
- getType() - Method in interface ch.jalu.typeresolver.numbers.NumberType
-
- getType() - Method in enum ch.jalu.typeresolver.numbers.StandardNumberType
-
- getType() - Method in class ch.jalu.typeresolver.TypeInfo
-
- getTypeArgumentAsClass(int) - Method in class ch.jalu.typeresolver.TypeInfo
-
Returns the type argument for the given index as Class object, provided that the type is a parameterized type
and that the index is valid.
- getTypeArgumentInfo(int) - Method in class ch.jalu.typeresolver.TypeInfo
-
Returns the type argument at the given index for the wrapped type, provided that the type is a parameterized type
and that the index is valid.
- getUpperBounds() - Method in class ch.jalu.typeresolver.typeimpl.WildcardTypeImpl
-
- getValueRange() - Method in interface ch.jalu.typeresolver.numbers.NumberType
-
Returns information about the value range this type can represent.
- getValueRange() - Method in enum ch.jalu.typeresolver.numbers.StandardNumberType
-
Returns information about the value range this type can represent.
- simpleBooleanArrayBinarySearch(boolean[], int, int, boolean) - Static method in class ch.jalu.typeresolver.array.ArrayUtils
-
Fill-in implementation for a boolean array binary search: allows to search for a value in a boolean array that
has been sorted.
- simpleBooleanArraySort(boolean[], int, int) - Static method in class ch.jalu.typeresolver.array.ArrayUtils
-
Naive implementation of an array sort for boolean arrays.
- sort(Object) - Static method in class ch.jalu.typeresolver.array.ArrayUtils
-
Delegates to the appropriate method to sort the given array.
- sort(Object, int, int) - Static method in class ch.jalu.typeresolver.array.ArrayUtils
-
Delegates to the appropriate method to sort the given array.
- StandardNumberType - Enum in ch.jalu.typeresolver.numbers
-
NumberType implementations for standard Java number types: byte, short, integer, long, float, double,
BigInteger and BigDecimal.
- StandardValueRange - Enum in ch.jalu.typeresolver.numbers
-
Provides value ranges of the standard Java number types: byte, short, integer, long, float, double, BigInteger
and BigDecimal.
- stream(Object) - Static method in class ch.jalu.typeresolver.array.ArrayUtils
-
Returns a stream of the objects in the given array.
- streamThroughAll() - Static method in class ch.jalu.typeresolver.numbers.NumberTypes
-
Provides a stream of all
NumberType implementations provided by this library.
- streamThroughAll() - Static method in enum ch.jalu.typeresolver.numbers.StandardNumberType
-
Creates a stream of all number types in this enum, typed as
NumberType.
- streamThroughPrimitiveTypes() - Static method in enum ch.jalu.typeresolver.numbers.StandardNumberType
-
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.
- supportsAllValuesOf(NumberType<?>) - Method in interface ch.jalu.typeresolver.numbers.NumberType
-
- supportsAllValuesOf(StandardValueRange) - Method in enum ch.jalu.typeresolver.numbers.StandardValueRange
-
Returns whether this range supports all values of the given range.
- supportsAllValuesOf(ValueRange<?>) - Method in interface ch.jalu.typeresolver.numbers.ValueRange
-
Specifies whether this range can represent all values of the given value range without loss of
magnitude.
- supportsDecimals() - Method in enum ch.jalu.typeresolver.numbers.StandardValueRange
-
- supportsDecimals() - Method in interface ch.jalu.typeresolver.numbers.ValueRange
-
- supportsDecimals() - Method in class ch.jalu.typeresolver.numbers.ValueRangeImpl
-
- valueOf(String) - Static method in enum ch.jalu.typeresolver.classutil.ClassType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum ch.jalu.typeresolver.numbers.StandardNumberType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum ch.jalu.typeresolver.numbers.StandardValueRange
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum ch.jalu.typeresolver.numbers.ValueRangeComparison
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum ch.jalu.typeresolver.primitives.PrimitiveType
-
Returns the enum constant of this type with the specified name.
- ValueRange<T> - Interface in ch.jalu.typeresolver.numbers
-
Value range of a number type.
- ValueRangeComparison - Enum in ch.jalu.typeresolver.numbers
-
Result of the comparison of a number with a type's value range.
- ValueRangeImpl<T> - Class in ch.jalu.typeresolver.numbers
-
- ValueRangeImpl(T, T, BigDecimal, BigDecimal, boolean, boolean) - Constructor for class ch.jalu.typeresolver.numbers.ValueRangeImpl
-
Constructor.
- values() - Static method in enum ch.jalu.typeresolver.classutil.ClassType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum ch.jalu.typeresolver.numbers.StandardNumberType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum ch.jalu.typeresolver.numbers.StandardValueRange
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum ch.jalu.typeresolver.numbers.ValueRangeComparison
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum ch.jalu.typeresolver.primitives.PrimitiveType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- visitAllTypes(Consumer<Type>) - Method in class ch.jalu.typeresolver.TypeInfo
-
Invokes the given consumer for each type that this wrapped type can be assigned to (i.e.