Record Class PlantUmlEdge
java.lang.Object
java.lang.Record
dev.archunitjava.diagram.plantuml.PlantUmlEdge
- All Implemented Interfaces:
Comparable<PlantUmlEdge>
public record PlantUmlEdge(String originAlias, String targetAlias, PlantUmlArrow arrow)
extends Record
implements Comparable<PlantUmlEdge>
One declared directed component edge.
-
Constructor Summary
ConstructorsConstructorDescriptionPlantUmlEdge(String originAlias, String targetAlias, PlantUmlArrow arrow) Creates an instance of aPlantUmlEdgerecord class. -
Method Summary
Modifier and TypeMethodDescriptionarrow()Returns the value of thearrowrecord component.intcompareTo(PlantUmlEdge other) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theoriginAliasrecord component.Returns the value of thetargetAliasrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PlantUmlEdge
Creates an instance of aPlantUmlEdgerecord class.- Parameters:
originAlias- the value for theoriginAliasrecord componenttargetAlias- the value for thetargetAliasrecord componentarrow- the value for thearrowrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<PlantUmlEdge>
-
toString
-
hashCode
-
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). -
originAlias
Returns the value of theoriginAliasrecord component.- Returns:
- the value of the
originAliasrecord component
-
targetAlias
Returns the value of thetargetAliasrecord component.- Returns:
- the value of the
targetAliasrecord component
-
arrow
Returns the value of thearrowrecord component.- Returns:
- the value of the
arrowrecord component
-