Record Class Constraints.Range
java.lang.Object
java.lang.Record
org.clafer.alloy.solve.Constraints.Range
- Enclosing class:
Constraints
public static record Constraints.Range(long line, long column, long endLine, long endColumn)
extends Record
A span of the Alloy code, as an unsat core gives it: lines and columns,
the end column one past Alloy's.
-
Constructor Summary
ConstructorsConstructorDescriptionRange(long line, long column, long endLine, long endColumn) Creates an instance of aRangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongcolumn()Returns the value of thecolumnrecord component.longReturns the value of theendColumnrecord component.longendLine()Returns the value of theendLinerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longline()Returns the value of thelinerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Range
Creates an instance of aRangerecord class.- Parameters:
line- the value for thelinerecord componentcolumn- the value for thecolumnrecord componentendLine- the value for theendLinerecord componentendColumn- the value for theendColumnrecord 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 with thecomparemethod from their corresponding wrapper classes. -
line
Returns the value of thelinerecord component.- Returns:
- the value of the
linerecord component
-
column
Returns the value of thecolumnrecord component.- Returns:
- the value of the
columnrecord component
-
endLine
Returns the value of theendLinerecord component.- Returns:
- the value of the
endLinerecord component
-
endColumn
Returns the value of theendColumnrecord component.- Returns:
- the value of the
endColumnrecord component
-