Package org.xcsp.common
Enum Types.StandardClass
- java.lang.Object
-
- java.lang.Enum<Types.StandardClass>
-
- org.xcsp.common.Types.StandardClass
-
- All Implemented Interfaces:
Serializable
,Comparable<Types.StandardClass>
,Types.TypeClass
- Enclosing class:
- Types
public static enum Types.StandardClass extends Enum<Types.StandardClass> implements Types.TypeClass
The enum type describing the different standard classes that can be associated with XCSP3 elements.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLOCKS
CHANNELING
CLUES
COLUMNS
DIAGONALS
NOGOODS
REDUNDANT_CONSTRAINTS
ROWS
SYMMETRY_BREAKING
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
ccname()
Returns the camel case name of this constant (for example, clues, or symmetryBreaking)static Types.StandardClass
valueOf(String name)
Returns the enum constant of this type with the specified name.static Types.StandardClass[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CHANNELING
public static final Types.StandardClass CHANNELING
-
CLUES
public static final Types.StandardClass CLUES
-
ROWS
public static final Types.StandardClass ROWS
-
COLUMNS
public static final Types.StandardClass COLUMNS
-
BLOCKS
public static final Types.StandardClass BLOCKS
-
DIAGONALS
public static final Types.StandardClass DIAGONALS
-
SYMMETRY_BREAKING
public static final Types.StandardClass SYMMETRY_BREAKING
-
REDUNDANT_CONSTRAINTS
public static final Types.StandardClass REDUNDANT_CONSTRAINTS
-
NOGOODS
public static final Types.StandardClass NOGOODS
-
-
Method Detail
-
values
public static Types.StandardClass[] 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 (Types.StandardClass c : Types.StandardClass.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Types.StandardClass 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
-
ccname
public String ccname()
Description copied from interface:Types.TypeClass
Returns the camel case name of this constant (for example, clues, or symmetryBreaking)- Specified by:
ccname
in interfaceTypes.TypeClass
-
-