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>
- Enclosing interface:
- ITypeConverterRule<SRC,DST>
public static enum ITypeConverterRule.ESubType extends Enum<ITypeConverterRule.ESubType>
Define the sub types of the rules. The order is the sub type in which they are evaluated.- Author:
- Philip Helger
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANY_SRC_FIXED_DSTAny source type and fixed destination type.ASSIGNABLE_SRC_FIXED_DSTAssignable source type and fixed destination type.FIXED_SRC_ANY_DSTFixed source type and any destination type.FIXED_SRC_ASSIGNABLE_DSTFixed source type and assignable destination type.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ITypeConverterRule.ESubTypevalueOf(String name)Returns 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 Detail
-
FIXED_SRC_ASSIGNABLE_DST
public static final ITypeConverterRule.ESubType FIXED_SRC_ASSIGNABLE_DST
Fixed source type and assignable destination type.
-
FIXED_SRC_ANY_DST
public static final ITypeConverterRule.ESubType FIXED_SRC_ANY_DST
Fixed source type and any destination type.
-
ASSIGNABLE_SRC_FIXED_DST
public static final ITypeConverterRule.ESubType ASSIGNABLE_SRC_FIXED_DST
Assignable source type and fixed destination type.
-
ANY_SRC_FIXED_DST
public static final ITypeConverterRule.ESubType ANY_SRC_FIXED_DST
Any source type and fixed destination type.
-
-
Method Detail
-
values
public static ITypeConverterRule.ESubType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ITypeConverterRule.ESubType c : ITypeConverterRule.ESubType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ITypeConverterRule.ESubType valueOf(String name)
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
-
-