| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | ValueConversions.
Thread-safe canonicalized mapping from Wrapper to MethodHandle with unsynchronized reads and synchronized writes. |
| Modifier and Type | Field and Description |
|---|---|
| private static final ValueConversions. | |
| private static final ValueConversions. | |
| private static final MethodHandles. | |
| private static final Integer | |
| private static final Class | |
| private static final ValueConversions. | |
| private static final Integer |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static byte | |
| pack-priv static char | |
| pack-priv static double | |
| pack-priv static float | |
| pack-priv static int | |
| pack-priv static long | |
| pack-priv static short | |
| pack-priv static Boolean | |
| pack-priv static Byte | |
| pack-priv static Character | |
| pack-priv static Double | |
| public static MethodHandle | |
| pack-priv static Float | |
| pack-priv static Integer | |
| pack-priv static Long | |
| pack-priv static Short | |
| private static MethodType | |
| pack-priv static boolean | |
| pack-priv static char | |
| pack-priv static double | |
| pack-priv static float | |
| pack-priv static int | |
| pack-priv static long | |
| pack-priv static short | |
| private static String | |
| pack-priv static boolean | |
| pack-priv static byte | |
| pack-priv static double | |
| pack-priv static float | |
| pack-priv static int | |
| pack-priv static long | |
| pack-priv static short | |
| public static MethodHandle | |
| public static MethodHandle | |
| pack-priv static boolean | |
| pack-priv static byte | |
| pack-priv static char | |
| pack-priv static float | |
| pack-priv static int | |
| pack-priv static long | |
| pack-priv static short | |
| pack-priv static boolean | |
| pack-priv static byte | |
| pack-priv static char | |
| pack-priv static double | |
| pack-priv static int | |
| pack-priv static long | |
| pack-priv static short | |
| pack-priv static byte | |
| pack-priv static void | |
| public static MethodHandle | |
| pack-priv static boolean | |
| pack-priv static byte | |
| pack-priv static char | |
| pack-priv static double | |
| pack-priv static float | |
| pack-priv static long | |
| pack-priv static short | |
| pack-priv static boolean | |
| pack-priv static byte | |
| pack-priv static char | |
| pack-priv static double | |
| pack-priv static float | |
| pack-priv static int | |
| pack-priv static short | |
| private static InternalError | |
| private static ValueConversions. | |
| public static Number | primitiveConversion(Wrapper wrap, Object x, boolean cast)
Produce a Number which represents the given value |
| pack-priv static boolean | |
| pack-priv static byte | |
| pack-priv static char | |
| pack-priv static double | |
| pack-priv static float | |
| pack-priv static int | |
| pack-priv static long | |
| pack-priv static boolean | |
| private static MethodHandle | |
| pack-priv static boolean | |
| pack-priv static boolean | |
| pack-priv static byte | |
| pack-priv static byte | |
| public static MethodHandle | |
| pack-priv static char | |
| pack-priv static char | |
| pack-priv static double | |
| pack-priv static double | |
| public static MethodHandle | |
| public static MethodHandle | unboxExact(Wrapper type, boolean throwNPE)
Return an exact unboxer for the given primitive type, with optional null-to-zero conversion. |
| pack-priv static float | |
| pack-priv static float | |
| pack-priv static int | |
| pack-priv static int | |
| pack-priv static long | |
| pack-priv static long | |
| pack-priv static short | |
| pack-priv static short | |
| private static MethodType | |
| public static MethodHandle | |
| public static int |
| BOX_CONVERSIONS | back to summary |
|---|---|
| private static final ValueConversions. | |
| CONVERT_PRIMITIVE_FUNCTIONS | back to summary |
|---|---|
| private static final ValueConversions. | |
| IMPL_LOOKUP | back to summary |
|---|---|
| private static final MethodHandles. | |
| ONE_INT | back to summary |
|---|---|
| private static final Integer ONE_INT | |
| THIS_CLASS | back to summary |
|---|---|
| private static final Class<?> THIS_CLASS | |
| UNBOX_CONVERSIONS | back to summary |
|---|---|
| private static final ValueConversions. | |
| ZERO_INT | back to summary |
|---|---|
| private static final Integer ZERO_INT | |
| ValueConversions | back to summary |
|---|---|
| public ValueConversions() | |
| booleanToByte | back to summary |
|---|---|
| pack-priv static byte booleanToByte(boolean x) | |
| booleanToChar | back to summary |
|---|---|
| pack-priv static char booleanToChar(boolean x) | |
| booleanToDouble | back to summary |
|---|---|
| pack-priv static double booleanToDouble(boolean x) | |
| booleanToFloat | back to summary |
|---|---|
| pack-priv static float booleanToFloat(boolean x) | |
| booleanToInt | back to summary |
|---|---|
| pack-priv static int booleanToInt(boolean x) | |
| booleanToLong | back to summary |
|---|---|
| pack-priv static long booleanToLong(boolean x) | |
| booleanToShort | back to summary |
|---|---|
| pack-priv static short booleanToShort(boolean x) | |
| boxBoolean | back to summary |
|---|---|
| pack-priv static Boolean boxBoolean(boolean x) | |
| boxByte | back to summary |
|---|---|
| pack-priv static Byte boxByte(byte x) | |
| boxCharacter | back to summary |
|---|---|
| pack-priv static Character boxCharacter(char x) | |
| boxDouble | back to summary |
|---|---|
| pack-priv static Double boxDouble(double x) | |
| boxExact | back to summary |
|---|---|
| public static MethodHandle boxExact(Wrapper wrap) | |
| boxFloat | back to summary |
|---|---|
| pack-priv static Float boxFloat(float x) | |
| boxInteger | back to summary |
|---|---|
| pack-priv static Integer boxInteger(int x) | |
| boxLong | back to summary |
|---|---|
| pack-priv static Long boxLong(long x) | |
| boxShort | back to summary |
|---|---|
| pack-priv static Short boxShort(short x) | |
| boxType | back to summary |
|---|---|
| private static MethodType boxType(Wrapper wrap) | |
| byteToBoolean | back to summary |
|---|---|
| pack-priv static boolean byteToBoolean(byte x) | |
| byteToChar | back to summary |
|---|---|
| pack-priv static char byteToChar(byte x) | |
| byteToDouble | back to summary |
|---|---|
| pack-priv static double byteToDouble(byte x) | |
| byteToFloat | back to summary |
|---|---|
| pack-priv static float byteToFloat(byte x) | |
| byteToInt | back to summary |
|---|---|
| pack-priv static int byteToInt(byte x) | |
| byteToLong | back to summary |
|---|---|
| pack-priv static long byteToLong(byte x) | |
| byteToShort | back to summary |
|---|---|
| pack-priv static short byteToShort(byte x) | |
| capitalize | back to summary |
|---|---|
| private static String capitalize(String x) | |
| charToBoolean | back to summary |
|---|---|
| pack-priv static boolean charToBoolean(char x) | |
| charToByte | back to summary |
|---|---|
| pack-priv static byte charToByte(char x) | |
| charToDouble | back to summary |
|---|---|
| pack-priv static double charToDouble(char x) | |
| charToFloat | back to summary |
|---|---|
| pack-priv static float charToFloat(char x) | |
| charToInt | back to summary |
|---|---|
| pack-priv static int charToInt(char x) | |
| charToLong | back to summary |
|---|---|
| pack-priv static long charToLong(char x) | |
| charToShort | back to summary |
|---|---|
| pack-priv static short charToShort(char x) | |
| convertPrimitive | back to summary |
|---|---|
| public static MethodHandle convertPrimitive(Wrapper wsrc, Wrapper wdst) | |
| convertPrimitive | back to summary |
|---|---|
| public static MethodHandle convertPrimitive(Class<?> src, Class<?> dst) | |
| doubleToBoolean | back to summary |
|---|---|
| pack-priv static boolean doubleToBoolean(double x) | |
| doubleToByte | back to summary |
|---|---|
| pack-priv static byte doubleToByte(double x) | |
| doubleToChar | back to summary |
|---|---|
| pack-priv static char doubleToChar(double x) | |
| doubleToFloat | back to summary |
|---|---|
| pack-priv static float doubleToFloat(double x) | |
| doubleToInt | back to summary |
|---|---|
| pack-priv static int doubleToInt(double x) | |
| doubleToLong | back to summary |
|---|---|
| pack-priv static long doubleToLong(double x) | |
| doubleToShort | back to summary |
|---|---|
| pack-priv static short doubleToShort(double x) | |
| floatToBoolean | back to summary |
|---|---|
| pack-priv static boolean floatToBoolean(float x) | |
| floatToByte | back to summary |
|---|---|
| pack-priv static byte floatToByte(float x) | |
| floatToChar | back to summary |
|---|---|
| pack-priv static char floatToChar(float x) | |
| floatToDouble | back to summary |
|---|---|
| pack-priv static double floatToDouble(float x) | |
| floatToInt | back to summary |
|---|---|
| pack-priv static int floatToInt(float x) | |
| floatToLong | back to summary |
|---|---|
| pack-priv static long floatToLong(float x) | |
| floatToShort | back to summary |
|---|---|
| pack-priv static short floatToShort(float x) | |
| fromBoolean | back to summary |
|---|---|
| pack-priv static byte fromBoolean(boolean x) | |
| ignore | back to summary |
|---|---|
| pack-priv static void ignore(Object x) | |
| ignore | back to summary |
|---|---|
| public static MethodHandle ignore() | |
| intToBoolean | back to summary |
|---|---|
| pack-priv static boolean intToBoolean(int x) | |
| intToByte | back to summary |
|---|---|
| pack-priv static byte intToByte(int x) | |
| intToChar | back to summary |
|---|---|
| pack-priv static char intToChar(int x) | |
| intToDouble | back to summary |
|---|---|
| pack-priv static double intToDouble(int x) | |
| intToFloat | back to summary |
|---|---|
| pack-priv static float intToFloat(int x) | |
| intToLong | back to summary |
|---|---|
| pack-priv static long intToLong(int x) | |
| intToShort | back to summary |
|---|---|
| pack-priv static short intToShort(int x) | |
| longToBoolean | back to summary |
|---|---|
| pack-priv static boolean longToBoolean(long x) | |
| longToByte | back to summary |
|---|---|
| pack-priv static byte longToByte(long x) | |
| longToChar | back to summary |
|---|---|
| pack-priv static char longToChar(long x) | |
| longToDouble | back to summary |
|---|---|
| pack-priv static double longToDouble(long x) | |
| longToFloat | back to summary |
|---|---|
| pack-priv static float longToFloat(long x) | |
| longToInt | back to summary |
|---|---|
| pack-priv static int longToInt(long x) | |
| longToShort | back to summary |
|---|---|
| pack-priv static short longToShort(long x) | |
| newInternalError | back to summary |
|---|---|
| private static InternalError newInternalError(String message, Throwable cause) | |
| newWrapperCaches | back to summary |
|---|---|
| private static ValueConversions. | |
| primitiveConversion | back to summary |
|---|---|
| public static Number primitiveConversion(Wrapper wrap, Object x, boolean cast) Produce a Number which represents the given value | |
| shortToBoolean | back to summary |
|---|---|
| pack-priv static boolean shortToBoolean(short x) | |
| shortToByte | back to summary |
|---|---|
| pack-priv static byte shortToByte(short x) | |
| shortToChar | back to summary |
|---|---|
| pack-priv static char shortToChar(short x) | |
| shortToDouble | back to summary |
|---|---|
| pack-priv static double shortToDouble(short x) | |
| shortToFloat | back to summary |
|---|---|
| pack-priv static float shortToFloat(short x) | |
| shortToInt | back to summary |
|---|---|
| pack-priv static int shortToInt(short x) | |
| shortToLong | back to summary |
|---|---|
| pack-priv static long shortToLong(short x) | |
| toBoolean | back to summary |
|---|---|
| pack-priv static boolean toBoolean(byte x) | |
| unbox | back to summary |
|---|---|
| private static MethodHandle unbox(Wrapper wrap, int kind) | |
| unboxBoolean | back to summary |
|---|---|
| pack-priv static boolean unboxBoolean(Boolean x) | |
| unboxBoolean | back to summary |
|---|---|
| pack-priv static boolean unboxBoolean(Object x, boolean cast) | |
| unboxByte | back to summary |
|---|---|
| pack-priv static byte unboxByte(Byte x) | |
| unboxByte | back to summary |
|---|---|
| pack-priv static byte unboxByte(Object x, boolean cast) | |
| unboxCast | back to summary |
|---|---|
| public static MethodHandle unboxCast(Wrapper type) Return a casting unboxer for the given primitive type. Widen or narrow primitive values to the given type, or convert null to zero, as needed. The type of the unboxer is of a form like (Object)int. | |
| unboxCharacter | back to summary |
|---|---|
| pack-priv static char unboxCharacter(Character x) | |
| unboxCharacter | back to summary |
|---|---|
| pack-priv static char unboxCharacter(Object x, boolean cast) | |
| unboxDouble | back to summary |
|---|---|
| pack-priv static double unboxDouble(Double x) | |
| unboxDouble | back to summary |
|---|---|
| pack-priv static double unboxDouble(Object x, boolean cast) | |
| unboxExact | back to summary |
|---|---|
| public static MethodHandle unboxExact(Wrapper type) Return an exact unboxer for the given primitive type. | |
| unboxExact | back to summary |
|---|---|
| public static MethodHandle unboxExact(Wrapper type, boolean throwNPE) Return an exact unboxer for the given primitive type, with optional null-to-zero conversion. The boolean says whether to throw an NPE on a null value (false means unbox a zero). The type of the unboxer is of a form like (Integer)int. | |
| unboxFloat | back to summary |
|---|---|
| pack-priv static float unboxFloat(Float x) | |
| unboxFloat | back to summary |
|---|---|
| pack-priv static float unboxFloat(Object x, boolean cast) | |
| unboxInteger | back to summary |
|---|---|
| pack-priv static int unboxInteger(Integer x) | |
| unboxInteger | back to summary |
|---|---|
| pack-priv static int unboxInteger(Object x, boolean cast) | |
| unboxLong | back to summary |
|---|---|
| pack-priv static long unboxLong(Long x) | |
| unboxLong | back to summary |
|---|---|
| pack-priv static long unboxLong(Object x, boolean cast) | |
| unboxShort | back to summary |
|---|---|
| pack-priv static short unboxShort(Short x) | |
| unboxShort | back to summary |
|---|---|
| pack-priv static short unboxShort(Object x, boolean cast) | |
| unboxType | back to summary |
|---|---|
| private static MethodType unboxType(Wrapper wrap, int kind) | |
| unboxWiden | back to summary |
|---|---|
| public static MethodHandle unboxWiden(Wrapper type) Return a widening unboxer for the given primitive type. Widen narrower primitive boxes to the given type. Do not narrow any primitive values or convert null to zero. The type of the unboxer is of a form like (Object)int. | |
| widenSubword | back to summary |
|---|---|
| public static int widenSubword(Object x) The JVM verifier allows boolean, byte, short, or char to widen to int. Support exactly this conversion, from a boxed value type Boolean, Byte, Short, Character, or Integer. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final MethodHandle |
| Access | Constructor and Description |
|---|---|
| private |
| IGNORE | back to summary |
|---|---|
| pack-priv static final MethodHandle IGNORE | |
| Handles | back to summary |
|---|---|
| private Handles() | |
| Modifier and Type | Field and Description |
|---|---|
| private final MethodHandle[] |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public MethodHandle | |
| public synchronized MethodHandle |
| map | back to summary |
|---|---|
| private final MethodHandle[] map
| |
| WrapperCache | back to summary |
|---|---|
| private WrapperCache() | |
| get | back to summary |
|---|---|
| public MethodHandle get(Wrapper w) | |
| put | back to summary |
|---|---|
| public synchronized MethodHandle put(final Wrapper w, final MethodHandle mh) | |