Package de.xam.featdoc.system
Record Class TerminalEffect
java.lang.Object
java.lang.Record
de.xam.featdoc.system.TerminalEffect
- All Implemented Interfaces:
CauseAndEffect,Effect
-
Constructor Summary
ConstructorsConstructorDescriptionTerminalEffect(Rule rule, Message message, String comment, System system) Creates an instance of aTerminalEffectrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncomment()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.message()Returns the value of themessagerecord component.static TerminalEffectrule()Returns the value of therulerecord component.system()Returns the value of thesystemrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface de.xam.featdoc.system.CauseAndEffect
hasComment
-
Constructor Details
-
TerminalEffect
public TerminalEffect(@Nullable Rule rule, Message message, @Nullable String comment, System system) Creates an instance of aTerminalEffectrecord class.- Parameters:
rule- the value for therulerecord componentmessage- the value for themessagerecord componentcomment- the value for thecommentrecord componentsystem- the value for thesystemrecord component
-
-
Method Details
-
of
-
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). -
rule
Returns the value of therulerecord component.- Specified by:
rulein interfaceCauseAndEffect- Returns:
- the value of the
rulerecord component
-
message
Returns the value of themessagerecord component.- Specified by:
messagein interfaceCauseAndEffect- Returns:
- the value of the
messagerecord component
-
comment
Returns the value of thecommentrecord component.- Specified by:
commentin interfaceCauseAndEffect- Returns:
- the value of the
commentrecord component
-
system
Returns the value of thesystemrecord component.- Specified by:
systemin interfaceCauseAndEffect- Returns:
- the value of the
systemrecord component
-