Package monq.jfa.ooo
Record Class NotifyMatch
java.lang.Object
java.lang.Record
monq.jfa.ooo.NotifyMatch
- All Implemented Interfaces:
Action
This could well be a lambda, but those look unreadable if the DFA is dumped to a dot-file.
-
Constructor Summary
ConstructorsConstructorDescriptionNotifyMatch(Runnable notifier) Creates an instance of aNotifyMatchrecord 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.voidinvoke(StringBuilder out, int start) Will be called with new data appended to the givenStringBuilder.notifier()Returns the value of thenotifierrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
NotifyMatch
Creates an instance of aNotifyMatchrecord class.- Parameters:
notifier- the value for thenotifierrecord component
-
-
Method Details
-
invoke
Description copied from interface:ActionWill be called with new data appended to the givenStringBuilder. The method is free to work in any way with the whole text content, not only the new part demarcated by thestartparameter. -
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). -
notifier
Returns the value of thenotifierrecord component.- Returns:
- the value of the
notifierrecord component
-