Java Reference
Java Reference
MPArrayConstraintOrBuilder
Detailed Description
Definition at line 6 of file MPArrayConstraintOrBuilder.java.
Public Member Functions | |
| java.util.List< java.lang.Integer > | getVarIndexList () |
| int | getVarIndexCount () |
| int | getVarIndex (int index) |
| boolean | hasResultantVarIndex () |
optional int32 resultant_var_index = 2; More... | |
| int | getResultantVarIndex () |
optional int32 resultant_var_index = 2; More... | |
Member Function Documentation
◆ getResultantVarIndex()
| int getResultantVarIndex | ( | ) |
optional int32 resultant_var_index = 2;
- Returns
- The resultantVarIndex.
Implemented in MPArrayConstraint.Builder, and MPArrayConstraint.
◆ getVarIndex()
| int getVarIndex | ( | int | index | ) |
Variable indices are relative to the "variable" field in MPModelProto.
repeated int32 var_index = 1;
- Parameters
-
index The index of the element to return.
- Returns
- The varIndex at the given index.
Implemented in MPArrayConstraint.Builder, and MPArrayConstraint.
◆ getVarIndexCount()
| int getVarIndexCount | ( | ) |
Variable indices are relative to the "variable" field in MPModelProto.
repeated int32 var_index = 1;
- Returns
- The count of varIndex.
Implemented in MPArrayConstraint.Builder, and MPArrayConstraint.
◆ getVarIndexList()
| java.util.List<java.lang.Integer> getVarIndexList | ( | ) |
Variable indices are relative to the "variable" field in MPModelProto.
repeated int32 var_index = 1;
- Returns
- A list containing the varIndex.
Implemented in MPArrayConstraint.Builder, and MPArrayConstraint.
◆ hasResultantVarIndex()
| boolean hasResultantVarIndex | ( | ) |
optional int32 resultant_var_index = 2;
- Returns
- Whether the resultantVarIndex field is set.
Implemented in MPArrayConstraint.Builder, and MPArrayConstraint.
The documentation for this interface was generated from the following file: