java.lang.Object
java.lang.Record
org.maxicp.modeling.algebra.integer.MulBinary
- All Implemented Interfaces:
Serializable,Expression,IntExpression,SymbolicIntExpression,NonLeafExpressionNode
public record MulBinary(IntExpression x, BoolExpression b)
extends Record
implements SymbolicIntExpression, NonLeafExpressionNode
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aMulBinaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionb()Returns the value of thebrecord component.Collection<? extends Expression> Should be implemented by all subclasses, but not used directly.intintintfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Apply a function on all sub-expressions of this expression and returns a new expression of the same type.toString()Returns a string representation of this record class.x()Returns the value of thexrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.maxicp.modeling.algebra.Expression
subexpressionsMethods inherited from interface org.maxicp.modeling.algebra.integer.IntExpression
showMethods inherited from interface org.maxicp.modeling.algebra.NonLeafExpressionNode
getModelProxy, isFixedMethods inherited from interface org.maxicp.modeling.algebra.integer.SymbolicIntExpression
abs, contains, defaultContains, defaultFillArray, defaultSize, evaluate, fillArray, max, min, minus, minus, plus, plus, size
-
Constructor Details
-
MulBinary
Creates an instance of aMulBinaryrecord class.- Parameters:
x- the value for thexrecord componentb- the value for thebrecord component
-
-
Method Details
-
computeSubexpressions
Description copied from interface:ExpressionShould be implemented by all subclasses, but not used directly. Use subexpressions() instead, which is a cached version of this. Returns a collection that contains all sub-expressions of this expression. It should not be modified. In practice, it should actually be unmutable or a copy.- Specified by:
computeSubexpressionsin interfaceExpression
-
mapSubexpressions
Description copied from interface:ExpressionApply a function on all sub-expressions of this expression and returns a new expression of the same type. This function should return a value that is of the same class as the object that was given to it.- Specified by:
mapSubexpressionsin interfaceExpression- Specified by:
mapSubexpressionsin interfaceIntExpression
-
defaultEvaluate
- Specified by:
defaultEvaluatein interfaceSymbolicIntExpression- Throws:
VariableNotFixedException
-
defaultMin
public int defaultMin()- Specified by:
defaultMinin interfaceSymbolicIntExpression
-
defaultMax
public int defaultMax()- Specified by:
defaultMaxin interfaceSymbolicIntExpression
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
x
Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
b
Returns the value of thebrecord component.- Returns:
- the value of the
brecord component
-