Object#equals(Object), Object#hashCode(), and
Object#toString(). These methods may be used, for example, by
Java compiler implementations to implement the bodies of Object
methods for record classes.
| Modifier and Type | Field and Description |
|---|---|
| private static final MethodHandle | |
| private static final MethodHandle | |
| private static final MethodHandle | |
| private static final MethodHandle | |
| private static final MethodHandle | |
| private static final MethodHandle | |
| private static final int | |
| private static final MethodType | |
| private static final MethodType | |
| private static final MethodTypeDesc | |
| private static final MethodTypeDesc | |
| private static final MethodHandle | |
| private static final HashMap | |
| private static final HashMap | |
| private static final MethodHandle | |
| private static final MethodHandle |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Object | Returns: a call site if invoked by indy, or a method handle if invoked by a condythe full-privilege lookup context of the caller lookup,the name of the method to generate, which must be one of
methodName, TypeDescriptor "equals", "hashCode", or "toString"a type, Class<?> MethodType corresponding the descriptor type
for the method, which must correspond to the descriptor
for the corresponding Object method, if linking
an invokedynamic call site, or the
constant MethodHandle.class, if linking a
dynamic constantthe record class hosting the record components recordClass, String the list of component names, joined into a string
separated by ";", or the empty string if there are no
components. This parameter is ignored if the names, MethodHandle... methodName
parameter is "equals" or "hashCode"method handles for the accessor methods for the components getters)Bootstrap method to generate the |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static MethodHandle | equalator(MethodHandles.
Get the method handle for combining two values of a given type |
| private static int | |
| private static MethodHandle | |
| private static boolean | |
| private static MethodHandle | Returns: the method handlethe data class receiverClass, List<MethodHandle> the list of getters getters)Generates a method handle for the |
| private static MethodHandle | Returns: the method handlethe data class receiverClass, List<MethodHandle> the list of getters getters)Generates a method handle for the |
| private static MethodHandle | Returns: the method handlethe data class receiverClass, MethodHandle[] the list of getters getters, List<String> the names names)Generates a method handle for the |
| private static String | |
| private static List | Returns: chunks that won't surpass the maximum number of slots StringConcatFactory::makeConcatWithConstants can chewthe current getters getters)Chops the getters into smaller chunks according to the maximum number of slots StringConcatFactory::makeConcatWithConstants can chew |
| CLASS_IS_INSTANCE | back to summary |
|---|---|
| private static final MethodHandle CLASS_IS_INSTANCE | |
| FALSE | back to summary |
|---|---|
| private static final MethodHandle FALSE | |
| HASH_COMBINER | back to summary |
|---|---|
| private static final MethodHandle HASH_COMBINER | |
| IS_ARG0_NULL | back to summary |
|---|---|
| private static final MethodHandle IS_ARG0_NULL | |
| IS_ARG1_NULL | back to summary |
|---|---|
| private static final MethodHandle IS_ARG1_NULL | |
| IS_NULL | back to summary |
|---|---|
| private static final MethodHandle IS_NULL | |
| MAX_STRING_CONCAT_SLOTS | back to summary |
|---|---|
| private static final int MAX_STRING_CONCAT_SLOTS | |
| MT_INT | back to summary |
|---|---|
| private static final MethodType MT_INT | |
| MT_OBJECT_BOOLEAN | back to summary |
|---|---|
| private static final MethodType MT_OBJECT_BOOLEAN | |
| MTD_INT | back to summary |
|---|---|
| private static final MethodTypeDesc MTD_INT | |
| MTD_OBJECT_BOOLEAN | back to summary |
|---|---|
| private static final MethodTypeDesc MTD_OBJECT_BOOLEAN | |
| OBJECT_EQ | back to summary |
|---|---|
| private static final MethodHandle OBJECT_EQ | |
| primitiveEquals | back to summary |
|---|---|
| private static final HashMap<Class<?>, MethodHandle> primitiveEquals | |
| primitiveHashers | back to summary |
|---|---|
| private static final HashMap<Class<?>, MethodHandle> primitiveHashers | |
| TRUE | back to summary |
|---|---|
| private static final MethodHandle TRUE | |
| ZERO | back to summary |
|---|---|
| private static final MethodHandle ZERO | |
| ObjectMethods | back to summary |
|---|---|
| private ObjectMethods() | |
| bootstrap | back to summary |
|---|---|
| public static Object bootstrap(MethodHandles. Bootstrap method to generate the
| |
| eq | back to summary |
|---|---|
| private static boolean eq(Object a, Object b) | |
| eq | back to summary |
|---|---|
| private static boolean eq(byte a, byte b) | |
| eq | back to summary |
|---|---|
| private static boolean eq(short a, short b) | |
| eq | back to summary |
|---|---|
| private static boolean eq(char a, char b) | |
| eq | back to summary |
|---|---|
| private static boolean eq(int a, int b) | |
| eq | back to summary |
|---|---|
| private static boolean eq(long a, long b) | |
| eq | back to summary |
|---|---|
| private static boolean eq(float a, float b) | |
| eq | back to summary |
|---|---|
| private static boolean eq(double a, double b) | |
| eq | back to summary |
|---|---|
| private static boolean eq(boolean a, boolean b) | |
| equalator | back to summary |
|---|---|
| private static MethodHandle equalator(MethodHandles. Get the method handle for combining two values of a given type | |
| hashCombiner | back to summary |
|---|---|
| private static int hashCombiner(int x, int y) | |
| hasher | back to summary |
|---|---|
| private static MethodHandle hasher(MethodHandles. Get the hasher for a value of a given type | |
| isMonomorphic | back to summary |
|---|---|
| private static boolean isMonomorphic(Class<?> type) | |
| makeEquals | back to summary |
|---|---|
| private static MethodHandle makeEquals(MethodHandles. Generates a method handle for the
| |
| makeHashCode | back to summary |
|---|---|
| private static MethodHandle makeHashCode(MethodHandles. Generates a method handle for the
| |
| makeToString | back to summary |
|---|---|
| private static MethodHandle makeToString(MethodHandles. Generates a method handle for the
| |
| specializerClassName | back to summary |
|---|---|
| private static String specializerClassName(Class<?> targetClass, String kind) | |
| split | back to summary |
|---|---|
| private static List Chops the getters into smaller chunks according to the maximum number of slots StringConcatFactory::makeConcatWithConstants can chew
| |