Package de.xam.featdoc.system
Record Class Rule.Trigger
java.lang.Object
java.lang.Record
de.xam.featdoc.system.Rule.Trigger
- All Implemented Interfaces:
Rule.RulePart
- Enclosing class:
- Rule
public static record Rule.Trigger(Message incomingMessage, @Nullable String comment)
extends Record
implements Rule.RulePart
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringcomment()Returns the value of thecommentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theincomingMessagerecord component.booleanisTriggeredBy(Message message) message()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Trigger
Creates an instance of aTriggerrecord class.- Parameters:
incomingMessage- the value for theincomingMessagerecord componentcomment- the value for thecommentrecord component
-
-
Method Details
-
isTriggeredBy
-
message
- Specified by:
messagein interfaceRule.RulePart
-
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). -
incomingMessage
Returns the value of theincomingMessagerecord component.- Returns:
- the value of the
incomingMessagerecord component
-
comment
Returns the value of thecommentrecord component.- Specified by:
commentin interfaceRule.RulePart- Returns:
- the value of the
commentrecord component
-