Record Class CrossDetector.Cross
java.lang.Object
java.lang.Record
com.wualabs.qtsurfer.engine.strategy.CrossDetector.Cross
- Enclosing class:
CrossDetector
The transition reported by one
CrossDetector.check(double, double) call. At most one of the two is ever true.-
Constructor Summary
ConstructorsConstructorDescriptionCross(boolean above, boolean below) Creates an instance of aCrossrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanabove()Returns the value of theaboverecord component.booleanbelow()Returns the value of thebelowrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Cross
public Cross(boolean above, boolean below) Creates an instance of aCrossrecord class.- Parameters:
above- the value for theaboverecord componentbelow- the value for thebelowrecord 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. -
above
public boolean above()Returns the value of theaboverecord component.- Returns:
- the value of the
aboverecord component
-
below
public boolean below()Returns the value of thebelowrecord component.- Returns:
- the value of the
belowrecord component
-