Class ConversionTypes
java.lang.Object
com.ultikits.ultitools.config.convert.builtin.ConversionTypes
Type resolution for reflective declarations, generic ancestors, bounds, and arrays.
-
Constructor Details
-
ConversionTypes
private ConversionTypes()
-
-
Method Details
-
raw
- Parameters:
type- the declared type- Returns:
- its erased class after resolving bounds
-
bound
- Parameters:
type- the declared type- Returns:
- its effective bound
-
component
- Parameters:
type- an array declaration- Returns:
- its full component type
-
argument
Resolves the arguments of a generic ancestor, including concrete subclasses.- Parameters:
type- the declared class or parameterized typeancestor- the collection/map ancestorindex- the requested ancestor argument- Returns:
- the substituted type, or Object for a raw declaration
-
boxed
- Parameters:
type- primitive or reference class- Returns:
- its wrapper or itself
-