Lines Matching defs:identity
396 static <T> T identity(T x) {
400 static <T> T[] identity(T[] x) {
409 static int identity(int x) {
413 static byte identity(byte x) {
417 static short identity(short x) {
421 static boolean identity(boolean x) {
425 static char identity(char x) {
434 static long identity(long x) {
438 static float identity(float x) {
442 static double identity(double x) {
472 IDENTITY = IMPL_LOOKUP.findStatic(THIS_CLASS, "identity", idType);
478 ARRAY_IDENTITY = IMPL_LOOKUP.findStatic(THIS_CLASS, "identity", MethodType.methodType(Object[].class, Object[].class));
573 public static MethodHandle identity() {
577 public static MethodHandle identity(Class<?> type) {
579 // Reference identity has been moved into MethodHandles:
580 return MethodHandles.identity(type);
581 return identity(Wrapper.findPrimitiveType(type));
584 public static MethodHandle identity(Wrapper wrap) {
595 mh = IMPL_LOOKUP.findStatic(THIS_CLASS, "identity", type);
611 throw new IllegalArgumentException("cannot find identity for " + wrap);
834 mh = identity(src);