- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 83 for subtypeOf (0.06 seconds)
-
android/guava-tests/test/com/google/common/reflect/TypesTest.java
assertThrows(IllegalArgumentException.class, () -> Types.subtypeOf(int.class)); } public void testNewWildcardType_serializable() { SerializableTester.reserializeAndAssert(Types.supertypeOf(String.class)); SerializableTester.reserializeAndAssert(Types.subtypeOf(String.class)); SerializableTester.reserializeAndAssert(Types.subtypeOf(Object.class)); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Feb 11 19:03:19 GMT 2025 - 15.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/PredicatesTest.java
assertTrue(isComparable.apply(Integer.class)); assertTrue(isComparable.apply(Float.class)); } @J2ktIncompatible @GwtIncompatible // Predicates.subtypeOf public void testSubtypeOf_equality() { new EqualsTester() .addEqualityGroup(Predicates.subtypeOf(Integer.class)) .addEqualityGroup(Predicates.subtypeOf(Number.class))Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 32.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java
assertEquals( Types.subtypeOf(Object.class), TypeToken.of(Types.subtypeOf(Object[].class)).getComponentType().getType()); assertEquals( Types.subtypeOf(Object[].class), Types.newArrayType( TypeToken.of(Types.subtypeOf(Object[].class)).getComponentType().getType())); assertEquals( int.class, TypeToken.of(Types.subtypeOf(int[].class)).getComponentType().getType());
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 18:44:53 GMT 2025 - 89K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/PredicatesTest.java
assertTrue(isComparable.apply(Integer.class)); assertTrue(isComparable.apply(Float.class)); } @J2ktIncompatible @GwtIncompatible // Predicates.subtypeOf public void testSubtypeOf_equality() { new EqualsTester() .addEqualityGroup(Predicates.subtypeOf(Integer.class)) .addEqualityGroup(Predicates.subtypeOf(Number.class))Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 32.3K bytes - Click Count (0) -
guava/src/com/google/common/reflect/Types.java
} else { Type[] upperBounds = wildcard.getUpperBounds(); checkArgument(upperBounds.length == 1, "Wildcard should have only one upper bound."); return subtypeOf(newArrayType(upperBounds[0])); } } return JavaVersion.CURRENT.newArrayType(componentType); } /** * Returns a type where {@code rawType} is parameterized by {@code arguments} and is owned byCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Oct 31 19:34:24 GMT 2025 - 24.3K bytes - Click Count (0) -
guava/src/com/google/common/base/Predicates.java
/** * Returns a predicate that evaluates to {@code true} if the class being tested is assignable to * (is a subtype of) {@code clazz}. Example: * * {@snippet : * List<Class<?>> classes = Arrays.asList( * Object.class, String.class, Number.class, Long.class); * return Iterables.filter(classes, subtypeOf(Number.class)); * } *Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 26.6K bytes - Click Count (0) -
android/guava/src/com/google/common/reflect/Types.java
} else { Type[] upperBounds = wildcard.getUpperBounds(); checkArgument(upperBounds.length == 1, "Wildcard should have only one upper bound."); return subtypeOf(newArrayType(upperBounds[0])); } } return JavaVersion.CURRENT.newArrayType(componentType); } /** * Returns a type where {@code rawType} is parameterized by {@code arguments} and is owned byCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Oct 31 19:34:24 GMT 2025 - 24.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/reflect/TypeResolverTest.java
Type subtype = new TypeCapture<TypedKeyMap<T>>() {}.capture(); assertEquals( new TypeCapture<TypedKeyMap<String>>() {}.capture(), new TypeResolver() .where( new TypeCapture<Map<Integer, T>>() {}.capture(), new TypeCapture<Map<?, String>>() {}.capture()) .resolveType(subtype)); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 9.8K bytes - Click Count (0) -
build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/MethodsRemovedInInternalSuperClassRule.groovy
return methodParametersFromSignature(methodInSubClass) == methodParametersFromSignature(method) // Subclass can override method return type && methodInSubClass.returnType.subtypeOf(method.returnType) } /** * Returns method parameters from method signature, e.g. "(Ljava/lang/String;I)V" -> "(Ljava/lang/String;I)" */
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Dec 24 14:15:15 GMT 2025 - 4.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/reflect/TypeResolverTest.java
Type subtype = new TypeCapture<TypedKeyMap<T>>() {}.capture(); assertEquals( new TypeCapture<TypedKeyMap<String>>() {}.capture(), new TypeResolver() .where( new TypeCapture<Map<Integer, T>>() {}.capture(), new TypeCapture<Map<?, String>>() {}.capture()) .resolveType(subtype)); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 9.8K bytes - Click Count (0)