- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for arraytype (0.56 sec)
-
android/guava/src/com/google/common/reflect/TypeResolver.java
} if (type instanceof TypeVariable) { return type; } if (type instanceof GenericArrayType) { GenericArrayType arrayType = (GenericArrayType) type; return Types.newArrayType( notForTypeVariable().capture(arrayType.getGenericComponentType())); } if (type instanceof ParameterizedType) { ParameterizedType parameterizedType = (ParameterizedType) type;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Sep 03 14:03:14 UTC 2025 - 24.2K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/GenericsUtilTest.java
assertThat(returnClass, is(sameClass(Object.class))); } /** * @throws Exception */ public void testArray() throws Exception { final Method m1 = ArrayType.class.getMethod("arrayOfStringClass"); final Type t1 = m1.getGenericReturnType(); final Type t2 = GenericsUtil.getElementTypeOfArray(t1); assertThat(GenericsUtil.getRawClass(t2), is(sameClass(Class.class)));
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 11.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/ArbitraryInstances.java
} } } } return null; } private static <T> T createEmptyArray(Class<T> arrayType) { // getComponentType() is non-null because we call createEmptyArray only with an array type. return arrayType.cast(Array.newInstance(requireNonNull(arrayType.getComponentType()), 0)); } // Internal implementations of some classes, with public default constructor that get() needs.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 21.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java
} } } } return null; } private static <T> T createEmptyArray(Class<T> arrayType) { // getComponentType() is non-null because we call createEmptyArray only with an array type. return arrayType.cast(Array.newInstance(requireNonNull(arrayType.getComponentType()), 0)); } // Internal implementations of some classes, with public default constructor that get() needs.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 20.9K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/GenericsUtil.java
case ParameterizedType paramType -> getRawClass(paramType.getRawType()); case WildcardType wildcard -> getRawClass(wildcard.getUpperBounds()[0]); case GenericArrayType arrayType -> { Class<?> rawClass = getRawClass(arrayType.getGenericComponentType()); yield Array.newInstance(rawClass, 0).getClass(); } case null, default -> null; }; } /**
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 23.4K bytes - Viewed (0) -
guava/src/com/google/common/reflect/TypeResolver.java
} if (type instanceof TypeVariable) { return type; } if (type instanceof GenericArrayType) { GenericArrayType arrayType = (GenericArrayType) type; return Types.newArrayType( notForTypeVariable().capture(arrayType.getGenericComponentType())); } if (type instanceof ParameterizedType) { ParameterizedType parameterizedType = (ParameterizedType) type;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Sep 03 14:03:14 UTC 2025 - 24.2K bytes - Viewed (0) -
guava/src/com/google/common/io/ByteStreams.java
if (read1 != read2 || !arraysEqual(buf1, buf2, read1)) { return false; } else if (read1 != BUFFER_SIZE) { return true; } } } // The Arrays.equals(<arraytype>, int, int, <arraytype>, int, int) methods were not added until // Java 9. This function is just returns the same result that // Arrays.equals(array1, 0, count, array2, 0, count) would. It assumes that both arrays have a
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 31.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/TypeTokenTest.java
assertFalse( from.getType() + " shouldn't be a subtype of " + to.getType(), from.isSubtypeOf(to)); } private static void assertHasArrayInterfaces(TypeToken<?> arrayType) { assertEquals(arrayInterfaces(), ImmutableSet.copyOf(arrayType.getGenericInterfaces())); } private static ImmutableSet<TypeToken<?>> arrayInterfaces() { ImmutableSet.Builder<TypeToken<?>> builder = ImmutableSet.builder();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Sep 02 17:23:59 UTC 2025 - 89K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java
assertFalse( from.getType() + " shouldn't be a subtype of " + to.getType(), from.isSubtypeOf(to)); } private static void assertHasArrayInterfaces(TypeToken<?> arrayType) { assertEquals(arrayInterfaces(), ImmutableSet.copyOf(arrayType.getGenericInterfaces())); } private static ImmutableSet<TypeToken<?>> arrayInterfaces() { ImmutableSet.Builder<TypeToken<?>> builder = ImmutableSet.builder();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Sep 02 17:23:59 UTC 2025 - 89K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/Platform.java
return Arrays.copyOf(empty, length); } /** Equivalent to Arrays.copyOfRange(source, from, to, arrayOfType.getClass()). */ static <T extends @Nullable Object> T[] copy(Object[] source, int from, int to, T[] arrayOfType) { T[] result = newArray(arrayOfType, to - from); System.arraycopy(source, from, result, 0, to - from); return result; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jun 10 15:17:16 UTC 2025 - 5.5K bytes - Viewed (0)