Record Class ParsedEnclosingMethod
java.lang.Object
java.lang.Record
dev.archunitjava.importer.ParsedEnclosingMethod
- All Implemented Interfaces:
Comparable<ParsedEnclosingMethod>
public record ParsedEnclosingMethod(String enclosingClassBinaryName, Optional<String> methodName, Optional<String> methodDescriptor)
extends Record
implements Comparable<ParsedEnclosingMethod>
One EnclosingMethod attribute value.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(ParsedEnclosingMethod other) Returns the value of theenclosingClassBinaryNamerecord 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 themethodDescriptorrecord component.Returns the value of themethodNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ParsedEnclosingMethod
public ParsedEnclosingMethod(String enclosingClassBinaryName, Optional<String> methodName, Optional<String> methodDescriptor) Creates an instance of aParsedEnclosingMethodrecord class.- Parameters:
enclosingClassBinaryName- the value for theenclosingClassBinaryNamerecord componentmethodName- the value for themethodNamerecord componentmethodDescriptor- the value for themethodDescriptorrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<ParsedEnclosingMethod>
-
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). -
enclosingClassBinaryName
Returns the value of theenclosingClassBinaryNamerecord component.- Returns:
- the value of the
enclosingClassBinaryNamerecord component
-
methodName
-
methodDescriptor
-