Record Class Ir.ConstantSet
java.lang.Object
java.lang.Record
org.clafer.frontend.Ir.ConstantSet
- Enclosing class:
Ir
public static record Ir.ConstantSet(SourceSpan span, List<List<Integer>> rows, List<Ir.Name> type)
extends Record
implements Ir.Exp
{[1, 2], [3, 4]} :: T * U, a constant set of chocosolver's
printer: one row per column of the type.-
Constructor Summary
ConstructorsConstructorDescriptionConstantSet(SourceSpan span, List<List<Integer>> rows, List<Ir.Name> type) Creates an instance of aConstantSetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.rows()Returns the value of therowsrecord component.span()Returns the value of thespanrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
ConstantSet
Creates an instance of aConstantSetrecord class.- Parameters:
span- the value for thespanrecord componentrows- the value for therowsrecord componenttype- the value for thetyperecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
span
Returns the value of thespanrecord component. -
rows
-
type
-