ObjectMethods.Bootstrap Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Generates core object methods for a record class from its component names and accessors.
[Android.Runtime.Register("bootstrap", "(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/TypeDescriptor;Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/invoke/MethodHandle;)Ljava/lang/Object;", "", ApiSince=34)]
public static Java.Lang.Object Bootstrap(Java.Lang.Invoke.MethodHandles.Lookup lookup, string methodName, Java.Lang.Invoke.ITypeDescriptor type, Java.Lang.Class recordClass, string? names, params Java.Lang.Invoke.MethodHandle[] getters);
[<Android.Runtime.Register("bootstrap", "(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/TypeDescriptor;Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/invoke/MethodHandle;)Ljava/lang/Object;", "", ApiSince=34)>]
static member Bootstrap : Java.Lang.Invoke.MethodHandles.Lookup * string * Java.Lang.Invoke.ITypeDescriptor * Java.Lang.Class * string * Java.Lang.Invoke.MethodHandle[] -> Java.Lang.Object
Parameters
- lookup
- MethodHandles.Lookup
A lookup context. This parameter is ignored.
- methodName
- String
The name of the method to generate: equals, hashCode, or toString.
- type
- ITypeDescriptor
The descriptor for the method or dynamic constant being linked.
- recordClass
- Class
The record class that declares the record components.
- names
- String
A semicolon-separated list of component names, or an empty string when there are no components. This value may be null when methodName is equals or hashCode.
- getters
- MethodHandle[]
Method handles for the component accessor methods.
Returns
A call site for an invokedynamic call site, or a method handle for a dynamic constant-pool entry.
- Attributes
Exceptions
The bootstrap arguments are invalid or inconsistent.
An argument or an element of getters is null, except that names may be null for equals and hashCode.
An exception was thrown while constructing the call site.
Remarks
Java documentation for java.lang.runtime.ObjectMethods.bootstrap.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.