Package org.xcsp.common
Class Condition.ConditionVal
- java.lang.Object
-
- org.xcsp.common.Condition.ConditionRel
-
- org.xcsp.common.Condition.ConditionVal
-
- All Implemented Interfaces:
Condition
- Enclosing interface:
- Condition
public static class Condition.ConditionVal extends Condition.ConditionRel
Represents a condition composed of a relational operator and a value (long integer) as (right) operand.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.xcsp.common.Condition
Condition.ConditionIntset, Condition.ConditionIntvl, Condition.ConditionPar, Condition.ConditionRel, Condition.ConditionSet, Condition.ConditionVal, Condition.ConditionVar
-
-
Field Summary
Fields Modifier and Type Field Description long
k
The value that represents the operand of the condition.-
Fields inherited from class org.xcsp.common.Condition.ConditionRel
operator
-
-
Constructor Summary
Constructors Constructor Description ConditionVal(Types.TypeConditionOperatorRel operator, long k)
Constructs a condition composed of the specified relational operator and the specified value as (right) operand
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]
filtering(int[] values)
Object
rightTerm()
String
toString()
-
Methods inherited from class org.xcsp.common.Condition.ConditionRel
operatorTypeExpr
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.xcsp.common.Condition
involvedVar
-
-
-
-
Constructor Detail
-
ConditionVal
public ConditionVal(Types.TypeConditionOperatorRel operator, long k)
Constructs a condition composed of the specified relational operator and the specified value as (right) operand- Parameters:
operator
- a relational operatork
- an integer
-
-