Package org.mapstruct.ap.internal.gem
Enum SubclassExhaustiveStrategyGem
- java.lang.Object
-
- java.lang.Enum<SubclassExhaustiveStrategyGem>
-
- org.mapstruct.ap.internal.gem.SubclassExhaustiveStrategyGem
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SubclassExhaustiveStrategyGem>
public enum SubclassExhaustiveStrategyGem extends java.lang.Enum<SubclassExhaustiveStrategyGem>
Gem for the enumSubclassExhaustiveStrategy
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPILE_ERRORRUNTIME_EXCEPTION
-
Field Summary
Fields Modifier and Type Field Description private booleanabstractReturnTypeAllowed
-
Constructor Summary
Constructors Modifier Constructor Description privateSubclassExhaustiveStrategyGem(boolean abstractReturnTypeAllowed)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAbstractReturnTypeAllowed()static SubclassExhaustiveStrategyGemvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SubclassExhaustiveStrategyGem[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COMPILE_ERROR
public static final SubclassExhaustiveStrategyGem COMPILE_ERROR
-
RUNTIME_EXCEPTION
public static final SubclassExhaustiveStrategyGem RUNTIME_EXCEPTION
-
-
Method Detail
-
values
public static SubclassExhaustiveStrategyGem[] 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 (SubclassExhaustiveStrategyGem c : SubclassExhaustiveStrategyGem.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SubclassExhaustiveStrategyGem valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
isAbstractReturnTypeAllowed
public boolean isAbstractReturnTypeAllowed()
-
-