Record Class ConstraintNodeLocation
java.lang.Object
java.lang.Record
ai.timefold.solver.core.impl.bavet.common.ConstraintNodeLocation
- All Implemented Interfaces:
Comparable<ConstraintNodeLocation>
@NullMarked
public record ConstraintNodeLocation(String className, String methodName, int lineNumber)
extends Record
implements Comparable<ConstraintNodeLocation>
-
Constructor Summary
ConstructorsConstructorDescriptionConstraintNodeLocation(String className, String methodName, int lineNumber) Creates an instance of aConstraintNodeLocationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassNamerecord component.intfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thelineNumberrecord component.Returns the value of themethodNamerecord component.toString()Returns a string representation of this record class.static ConstraintNodeLocationunknown()
-
Constructor Details
-
ConstraintNodeLocation
Creates an instance of aConstraintNodeLocationrecord class.- Parameters:
className- the value for theclassNamerecord componentmethodName- the value for themethodNamerecord componentlineNumber- the value for thelineNumberrecord component
-
-
Method Details
-
unknown
-
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. -
compareTo
- Specified by:
compareToin interfaceComparable<ConstraintNodeLocation>
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
className
Returns the value of theclassNamerecord component.- Returns:
- the value of the
classNamerecord component
-
methodName
Returns the value of themethodNamerecord component.- Returns:
- the value of the
methodNamerecord component
-
lineNumber
public int lineNumber()Returns the value of thelineNumberrecord component.- Returns:
- the value of the
lineNumberrecord component
-