Record Class MessageNode
java.lang.Object
java.lang.Record
ch.admin.bit.jeap.reaction.observer.web.models.graph.MessageNode
- All Implemented Interfaces:
Node
-
Constructor Summary
ConstructorsConstructorDescriptionMessageNode(NodeType nodeType, long id, String messageKey, String messageType, String variant) Creates an instance of aMessageNoderecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longgetId()final inthashCode()Returns a hash code value for this object.longid()Returns the value of theidrecord component.Returns the value of themessageKeyrecord component.Returns the value of themessageTyperecord component.nodeType()Returns the value of thenodeTyperecord component.final StringtoString()Returns a string representation of this record class.variant()Returns the value of thevariantrecord component.
-
Constructor Details
-
MessageNode
public MessageNode(NodeType nodeType, long id, String messageKey, String messageType, String variant) Creates an instance of aMessageNoderecord class.- Parameters:
nodeType- the value for thenodeTyperecord componentid- the value for theidrecord componentmessageKey- the value for themessageKeyrecord componentmessageType- the value for themessageTyperecord componentvariant- the value for thevariantrecord component
-
-
Method Details
-
getId
public long getId() -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
nodeType
Returns the value of thenodeTyperecord component.- Returns:
- the value of the
nodeTyperecord component
-
id
public long id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
messageKey
Returns the value of themessageKeyrecord component.- Returns:
- the value of the
messageKeyrecord component
-
messageType
Returns the value of themessageTyperecord component.- Returns:
- the value of the
messageTyperecord component
-
variant
Returns the value of thevariantrecord component.- Returns:
- the value of the
variantrecord component
-