Record Class PlantUmlComponent
java.lang.Object
java.lang.Record
dev.archunitjava.diagram.plantuml.PlantUmlComponent
- All Implemented Interfaces:
Comparable<PlantUmlComponent>
public record PlantUmlComponent(String displayName, String alias, Optional<String> stereotype)
extends Record
implements Comparable<PlantUmlComponent>
One safely parsed component with a unique alias and display name.
-
Constructor Summary
ConstructorsConstructorDescriptionPlantUmlComponent(String displayName, String alias, Optional<String> stereotype) Creates an instance of aPlantUmlComponentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionalias()Returns the value of thealiasrecord component.intcompareTo(PlantUmlComponent other) Returns the value of thedisplayNamerecord component.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 thestereotyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PlantUmlComponent
Creates an instance of aPlantUmlComponentrecord class.- Parameters:
displayName- the value for thedisplayNamerecord componentalias- the value for thealiasrecord componentstereotype- the value for thestereotyperecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<PlantUmlComponent>
-
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). -
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
alias
Returns the value of thealiasrecord component.- Returns:
- the value of the
aliasrecord component
-
stereotype
-