Record Class ParsedAnnotation
java.lang.Object
java.lang.Record
dev.archunitjava.importer.ParsedAnnotation
- All Implemented Interfaces:
Comparable<ParsedAnnotation>
public record ParsedAnnotation(String typeDescriptor, List<ParsedAnnotationElement> elements)
extends Record
implements Comparable<ParsedAnnotation>
Backend-neutral annotation descriptor and explicitly stored element values.
-
Constructor Summary
ConstructorsConstructorDescriptionParsedAnnotation(String typeDescriptor, List<ParsedAnnotationElement> elements) Creates an instance of aParsedAnnotationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(ParsedAnnotation other) elements()Returns the value of theelementsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of thetypeDescriptorrecord component.
-
Constructor Details
-
ParsedAnnotation
Creates an instance of aParsedAnnotationrecord class.- Parameters:
typeDescriptor- the value for thetypeDescriptorrecord componentelements- the value for theelementsrecord component
-
-
Method Details
-
stableKey
-
compareTo
- Specified by:
compareToin interfaceComparable<ParsedAnnotation>
-
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). -
typeDescriptor
Returns the value of thetypeDescriptorrecord component.- Returns:
- the value of the
typeDescriptorrecord component
-
elements
Returns the value of theelementsrecord component.- Returns:
- the value of the
elementsrecord component
-