Record Class MessageNodeDto
java.lang.Object
java.lang.Record
ch.admin.bit.jeap.reaction.observer.web.models.graph.MessageNodeDto
- All Implemented Interfaces:
NodeDto
-
Constructor Summary
ConstructorsConstructorDescriptionMessageNodeDto(long id, String messageType, String variant) Creates an instance of aMessageNodeDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static MessageNodeDtofrom(ch.admin.bit.jeap.reaction.observer.domain.models.graph.Message message) longgetId()final inthashCode()Returns a hash code value for this object.longid()Returns the value of theidrecord component.Returns the value of themessageTyperecord component.final StringtoString()Returns a string representation of this record class.variant()Returns the value of thevariantrecord component.
-
Constructor Details
-
MessageNodeDto
Creates an instance of aMessageNodeDtorecord class.- Parameters:
id- the value for theidrecord componentmessageType- the value for themessageTyperecord componentvariant- the value for thevariantrecord component
-
-
Method Details
-
from
public static MessageNodeDto from(ch.admin.bit.jeap.reaction.observer.domain.models.graph.Message message) -
getId
public long getId() -
getCanonicalId
- Specified by:
getCanonicalIdin interfaceNodeDto
-
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 '=='. -
id
public long id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord 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
-