Record Class JavaBootstrapArgument
java.lang.Object
java.lang.Record
dev.archunitjava.model.JavaBootstrapArgument
public record JavaBootstrapArgument(String kind, String encodedValue, Optional<JavaMethodHandle> methodHandle)
extends Record
Ordered generic bootstrap argument with optional structured direct-handle data.
-
Constructor Summary
ConstructorsConstructorDescriptionJavaBootstrapArgument(String kind, String encodedValue, Optional<JavaMethodHandle> methodHandle) Creates an instance of aJavaBootstrapArgumentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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
-
JavaBootstrapArgument
public JavaBootstrapArgument(String kind, String encodedValue, Optional<JavaMethodHandle> methodHandle) Creates an instance of aJavaBootstrapArgumentrecord class.- Parameters:
kind- the value for thekindrecord componentencodedValue- the value for theencodedValuerecord componentmethodHandle- the value for themethodHandlerecord component
-
-
Method Details
-
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
-