Record Class ParsedRecordComponent
java.lang.Object
java.lang.Record
dev.archunitjava.importer.ParsedRecordComponent
- All Implemented Interfaces:
Comparable<ParsedRecordComponent>
public record ParsedRecordComponent(String name, String descriptor, Optional<String> genericSignature)
extends Record
implements Comparable<ParsedRecordComponent>
Backend-neutral record component extracted from a Record attribute.
-
Constructor Summary
ConstructorsConstructorDescriptionParsedRecordComponent(String name, String descriptor, Optional<String> genericSignature) Creates an instance of aParsedRecordComponentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(ParsedRecordComponent other) Returns the value of thedescriptorrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegenericSignaturerecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ParsedRecordComponent
Creates an instance of aParsedRecordComponentrecord class.- Parameters:
name- the value for thenamerecord componentdescriptor- the value for thedescriptorrecord componentgenericSignature- the value for thegenericSignaturerecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<ParsedRecordComponent>
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
descriptor
Returns the value of thedescriptorrecord component.- Returns:
- the value of the
descriptorrecord component
-
genericSignature
-