Lines Matching refs:identity
481 MethodHandle identity = MethodHandles.identity(boolean.class); in testIdentity() local
482 boolean value = (boolean) identity.invoke(false); in testIdentity()
489 MethodHandle identity = MethodHandles.identity(byte.class); in testIdentity() local
490 byte value = (byte) identity.invoke((byte) 0x8); in testIdentity()
497 MethodHandle identity = MethodHandles.identity(char.class); in testIdentity() local
498 char value = (char) identity.invoke((char) -56); in testIdentity()
505 MethodHandle identity = MethodHandles.identity(short.class); in testIdentity() local
506 short value = (short) identity.invoke((short) -59); in testIdentity()
513 MethodHandle identity = MethodHandles.identity(int.class); in testIdentity() local
514 int value = (int) identity.invoke(52); in testIdentity()
521 MethodHandle identity = MethodHandles.identity(long.class); in testIdentity() local
522 long value = (long) identity.invoke(-76l); in testIdentity()
529 MethodHandle identity = MethodHandles.identity(float.class); in testIdentity() local
530 float value = (float) identity.invoke(56.0f); in testIdentity()
537 MethodHandle identity = MethodHandles.identity(double.class); in testIdentity() local
538 double value = (double) identity.invoke((double) 72.0); in testIdentity()
545 MethodHandle identity = MethodHandles.identity(String.class); in testIdentity() local
546 String value = (String) identity.invoke("bazman"); in testIdentity()