Record Class ParsedAnnotationDefault
java.lang.Object
java.lang.Record
dev.archunitjava.importer.ParsedAnnotationDefault
- All Implemented Interfaces:
Comparable<ParsedAnnotationDefault>
public record ParsedAnnotationDefault(String methodName, String methodDescriptor, ParsedAnnotationValue value)
extends Record
implements Comparable<ParsedAnnotationDefault>
Default annotation value attached to one annotation-interface method.
-
Constructor Summary
ConstructorsConstructorDescriptionParsedAnnotationDefault(String methodName, String methodDescriptor, ParsedAnnotationValue value) Creates an instance of aParsedAnnotationDefaultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(ParsedAnnotationDefault 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 themethodDescriptorrecord component.Returns the value of themethodNamerecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
ParsedAnnotationDefault
public ParsedAnnotationDefault(String methodName, String methodDescriptor, ParsedAnnotationValue value) Creates an instance of aParsedAnnotationDefaultrecord class.- Parameters:
methodName- the value for themethodNamerecord componentmethodDescriptor- the value for themethodDescriptorrecord componentvalue- the value for thevaluerecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<ParsedAnnotationDefault>
-
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). -
methodName
Returns the value of themethodNamerecord component.- Returns:
- the value of the
methodNamerecord component
-
methodDescriptor
Returns the value of themethodDescriptorrecord component.- Returns:
- the value of the
methodDescriptorrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-