Package de.xam.featdoc.system
Record Class Message
java.lang.Object
java.lang.Record
de.xam.featdoc.system.Message
public record Message(System system, Message.Direction direction, Timing timing, String name)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumTemplates for messages, non-restricting -
Constructor Summary
ConstructorsConstructorDescriptionMessage(System system, Message.Direction direction, Timing timing, String name) Creates an instance of aMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic Messagecreate(System system, Message.Kind kind, String label) Returns the value of thedirectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanbooleanbooleanbooleanname()Returns the value of thenamerecord component.system()Returns the value of thesystemrecord component.timing()Returns the value of thetimingrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
Message
Creates an instance of aMessagerecord class.- Parameters:
system- the value for thesystemrecord componentdirection- the value for thedirectionrecord componenttiming- the value for thetimingrecord componentname- the value for thenamerecord component
-
-
Method Details
-
create
-
isAsynchronous
public boolean isAsynchronous() -
isOutgoing
public boolean isOutgoing() -
isIncoming
public boolean isIncoming() -
isSynchronous
public boolean isSynchronous() -
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). -
system
Returns the value of thesystemrecord component.- Returns:
- the value of the
systemrecord component
-
direction
Returns the value of thedirectionrecord component.- Returns:
- the value of the
directionrecord component
-
timing
Returns the value of thetimingrecord component.- Returns:
- the value of the
timingrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-