Package redempt.redlib.config
Class ConfigType<T>
java.lang.Object
redempt.redlib.config.ConfigType<T>
- Type Parameters:
T
- The base type
Represents a type and its type parameters
-
Constructor Summary
ConstructorDescriptionConfigType
(Class<T> clazz) Constructs a ConfigType with no component typesConfigType
(Class<T> clazz, List<ConfigType<?>> componentTypes) Constructs a ConfigType from a base class type and a list of component ConfigTypes -
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigType<?>
Creates a ConfigType from an arbitrary Typeboolean
static ConfigType<?>
Gets the ConfigType of a specific FieldList<ConfigType<?>>
getType()
int
hashCode()
toString()
-
Constructor Details
-
ConfigType
Constructs a ConfigType from a base class type and a list of component ConfigTypes- Parameters:
clazz
- The base class typecomponentTypes
- The component types
-
ConfigType
Constructs a ConfigType with no component types- Parameters:
clazz
- The class type
-
-
Method Details
-
create
Creates a ConfigType from an arbitrary Type- Parameters:
type
- The Type- Returns:
- A ConfigType representation of the Type
-
get
Gets the ConfigType of a specific Field- Parameters:
field
- The field- Returns:
- A ConfigType for the field
-
getType
- Returns:
- The base type of this ConfigType
-
getComponentTypes
- Returns:
- A list of all component types of this ConfigType
-
hashCode
public int hashCode() -
equals
-
toString
-