Record Class ParsedMethodParameter
java.lang.Object
java.lang.Record
dev.archunitjava.importer.ParsedMethodParameter
- All Implemented Interfaces:
Comparable<ParsedMethodParameter>
public record ParsedMethodParameter(int index, Optional<String> name, int accessFlags)
extends Record
implements Comparable<ParsedMethodParameter>
Backend-neutral MethodParameters entry, including compiler-created flags.
-
Constructor Summary
ConstructorsConstructorDescriptionParsedMethodParameter(int index, Optional<String> name, int accessFlags) Creates an instance of aParsedMethodParameterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theaccessFlagsrecord component.intcompareTo(ParsedMethodParameter other) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intindex()Returns the value of theindexrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ParsedMethodParameter
Creates an instance of aParsedMethodParameterrecord class.- Parameters:
index- the value for theindexrecord componentname- the value for thenamerecord componentaccessFlags- the value for theaccessFlagsrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<ParsedMethodParameter>
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
index
public int index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
name
-
accessFlags
public int accessFlags()Returns the value of theaccessFlagsrecord component.- Returns:
- the value of the
accessFlagsrecord component
-