Record Class ParsedBootstrapArgument
java.lang.Object
java.lang.Record
dev.archunitjava.importer.ParsedBootstrapArgument
- All Implemented Interfaces:
Comparable<ParsedBootstrapArgument>
public record ParsedBootstrapArgument(String kind, String encodedValue, Optional<ParsedMethodHandle> methodHandle)
extends Record
implements Comparable<ParsedBootstrapArgument>
Stable generic bootstrap argument plus an optional structured direct handle.
-
Constructor Summary
ConstructorsConstructorDescriptionParsedBootstrapArgument(String kind, String encodedValue, Optional<ParsedMethodHandle> methodHandle) Creates an instance of aParsedBootstrapArgumentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(ParsedBootstrapArgument other) Returns the value of theencodedValuerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.Returns the value of themethodHandlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ParsedBootstrapArgument
public ParsedBootstrapArgument(String kind, String encodedValue, Optional<ParsedMethodHandle> methodHandle) Creates an instance of aParsedBootstrapArgumentrecord class.- Parameters:
kind- the value for thekindrecord componentencodedValue- the value for theencodedValuerecord componentmethodHandle- the value for themethodHandlerecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<ParsedBootstrapArgument>
-
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). -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
encodedValue
Returns the value of theencodedValuerecord component.- Returns:
- the value of the
encodedValuerecord component
-
methodHandle
Returns the value of themethodHandlerecord component.- Returns:
- the value of the
methodHandlerecord component
-