|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<Constraint.Operator>
org.opt4j.satdecoding.Constraint.Operator
public static enum Constraint.Operator
The Constraint.Operators correspond to the Boolean operators <=,=,>=.
| Enum Constant Summary | |
|---|---|
EQ
Boolean operation =. |
|
GE
Boolean operation >=. |
|
LE
Boolean operation <=. |
|
| Method Summary | |
|---|---|
static Constraint.Operator |
getOperator(java.lang.String string)
Converts a String to an operator. |
boolean |
isTrue(int lhs,
int rhs)
Returns true if lhs Constraint.Operator rhs is
true. |
java.lang.String |
toString()
Returns a String representation of this Constraint.Operator. |
static Constraint.Operator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Constraint.Operator[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Constraint.Operator LE
public static final Constraint.Operator EQ
public static final Constraint.Operator GE
| Method Detail |
|---|
public static Constraint.Operator[] values()
for (Constraint.Operator c : Constraint.Operator.values()) System.out.println(c);
public static Constraint.Operator valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic java.lang.String toString()
String representation of this Constraint.Operator.
toString in class java.lang.Enum<Constraint.Operator>
public boolean isTrue(int lhs,
int rhs)
true if lhs Constraint.Operator rhs is
true.
lhs - the left hand side valuerhs - the right hand side value
true if the operation is true for the two valuespublic static Constraint.Operator getOperator(java.lang.String string)
String to an operator.
string - the string (<=,=,>=).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||