Package com.google.ortools.sat
Enum ConstraintProto.ConstraintCase
- java.lang.Object
-
- java.lang.Enum<ConstraintProto.ConstraintCase>
-
- com.google.ortools.sat.ConstraintProto.ConstraintCase
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,java.io.Serializable,java.lang.Comparable<ConstraintProto.ConstraintCase>
- Enclosing class:
- ConstraintProto
public static enum ConstraintProto.ConstraintCase extends java.lang.Enum<ConstraintProto.ConstraintCase> implements com.google.protobuf.Internal.EnumLite
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL_DIFFAT_MOST_ONEAUTOMATONBOOL_ANDBOOL_ORBOOL_XORCIRCUITCONSTRAINT_NOT_SETCUMULATIVEDUMMY_CONSTRAINTELEMENTEXACTLY_ONEINT_DIVINT_MODINT_PRODINTERVALINVERSELIN_MAXLINEARNO_OVERLAPNO_OVERLAP_2DRESERVOIRROUTESTABLE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ConstraintProto.ConstraintCaseforNumber(int value)intgetNumber()static ConstraintProto.ConstraintCasevalueOf(int value)Deprecated.static ConstraintProto.ConstraintCasevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ConstraintProto.ConstraintCase[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOOL_OR
public static final ConstraintProto.ConstraintCase BOOL_OR
-
BOOL_AND
public static final ConstraintProto.ConstraintCase BOOL_AND
-
AT_MOST_ONE
public static final ConstraintProto.ConstraintCase AT_MOST_ONE
-
EXACTLY_ONE
public static final ConstraintProto.ConstraintCase EXACTLY_ONE
-
BOOL_XOR
public static final ConstraintProto.ConstraintCase BOOL_XOR
-
INT_DIV
public static final ConstraintProto.ConstraintCase INT_DIV
-
INT_MOD
public static final ConstraintProto.ConstraintCase INT_MOD
-
INT_PROD
public static final ConstraintProto.ConstraintCase INT_PROD
-
LIN_MAX
public static final ConstraintProto.ConstraintCase LIN_MAX
-
LINEAR
public static final ConstraintProto.ConstraintCase LINEAR
-
ALL_DIFF
public static final ConstraintProto.ConstraintCase ALL_DIFF
-
ELEMENT
public static final ConstraintProto.ConstraintCase ELEMENT
-
CIRCUIT
public static final ConstraintProto.ConstraintCase CIRCUIT
-
ROUTES
public static final ConstraintProto.ConstraintCase ROUTES
-
TABLE
public static final ConstraintProto.ConstraintCase TABLE
-
AUTOMATON
public static final ConstraintProto.ConstraintCase AUTOMATON
-
INVERSE
public static final ConstraintProto.ConstraintCase INVERSE
-
RESERVOIR
public static final ConstraintProto.ConstraintCase RESERVOIR
-
INTERVAL
public static final ConstraintProto.ConstraintCase INTERVAL
-
NO_OVERLAP
public static final ConstraintProto.ConstraintCase NO_OVERLAP
-
NO_OVERLAP_2D
public static final ConstraintProto.ConstraintCase NO_OVERLAP_2D
-
CUMULATIVE
public static final ConstraintProto.ConstraintCase CUMULATIVE
-
DUMMY_CONSTRAINT
public static final ConstraintProto.ConstraintCase DUMMY_CONSTRAINT
-
CONSTRAINT_NOT_SET
public static final ConstraintProto.ConstraintCase CONSTRAINT_NOT_SET
-
-
Method Detail
-
values
public static ConstraintProto.ConstraintCase[] 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 (ConstraintProto.ConstraintCase c : ConstraintProto.ConstraintCase.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConstraintProto.ConstraintCase 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
-
valueOf
@Deprecated public static ConstraintProto.ConstraintCase valueOf(int value)
Deprecated.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:
value- 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
-
forNumber
public static ConstraintProto.ConstraintCase forNumber(int value)
-
getNumber
public int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite
-
-