Record Class TriggerEdgeDto
java.lang.Object
java.lang.Record
ch.admin.bit.jeap.reaction.observer.web.models.graph.TriggerEdgeDto
- All Implemented Interfaces:
EdgeDto
public record TriggerEdgeDto(long sourceId, NodeDtoType sourceNodeType, long targetReactionId, Integer median)
extends Record
implements EdgeDto
-
Constructor Summary
ConstructorsConstructorDescriptionTriggerEdgeDto(long sourceId, NodeDtoType sourceNodeType, long targetReactionId, Integer median) Creates an instance of aTriggerEdgeDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static TriggerEdgeDtofinal inthashCode()Returns a hash code value for this object.median()Returns the value of themedianrecord component.longsourceId()Returns the value of thesourceIdrecord component.Returns the value of thesourceNodeTyperecord component.longReturns the value of thetargetReactionIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TriggerEdgeDto
public TriggerEdgeDto(long sourceId, NodeDtoType sourceNodeType, long targetReactionId, Integer median) Creates an instance of aTriggerEdgeDtorecord class.- Parameters:
sourceId- the value for thesourceIdrecord componentsourceNodeType- the value for thesourceNodeTyperecord componenttargetReactionId- the value for thetargetReactionIdrecord componentmedian- the value for themedianrecord component
-
-
Method Details
-
from
-
getCanonicalId
- Specified by:
getCanonicalIdin interfaceEdgeDto
-
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 '=='. -
sourceId
public long sourceId()Returns the value of thesourceIdrecord component.- Returns:
- the value of the
sourceIdrecord component
-
sourceNodeType
Returns the value of thesourceNodeTyperecord component.- Returns:
- the value of the
sourceNodeTyperecord component
-
targetReactionId
public long targetReactionId()Returns the value of thetargetReactionIdrecord component.- Returns:
- the value of the
targetReactionIdrecord component
-
median
Returns the value of themedianrecord component.- Returns:
- the value of the
medianrecord component
-