Package com.helger.commons.typeconvert
Enum ITypeConverterRule.ESubType
java.lang.Object
java.lang.Enum<ITypeConverterRule.ESubType>
com.helger.commons.typeconvert.ITypeConverterRule.ESubType
- All Implemented Interfaces:
Serializable,Comparable<ITypeConverterRule.ESubType>,java.lang.constant.Constable
- Enclosing interface:
ITypeConverterRule<SRC,DST>
Define the sub types of the rules. The order is the sub type in which they
are evaluated.
- Author:
- Philip Helger
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAny source type and fixed destination type.Assignable source type and fixed destination type.Fixed source type and any destination type.Fixed source type and assignable destination type. -
Method Summary
Modifier and TypeMethodDescriptionstatic ITypeConverterRule.ESubTypeReturns the enum constant of this type with the specified name.static ITypeConverterRule.ESubType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FIXED_SRC_ASSIGNABLE_DST
Fixed source type and assignable destination type. -
FIXED_SRC_ANY_DST
Fixed source type and any destination type. -
ASSIGNABLE_SRC_FIXED_DST
Assignable source type and fixed destination type. -
ANY_SRC_FIXED_DST
Any source type and fixed destination type.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-