- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for subtypeOf (0.07 sec)
-
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());
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
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());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Sep 02 17:23:59 UTC 2025 - 89K bytes - Viewed (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 by
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Sep 03 14:03:14 UTC 2025 - 23.5K bytes - Viewed (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))
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 32.2K bytes - Viewed (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)); * } *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 26.6K bytes - Viewed (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 by
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Sep 03 14:03:14 UTC 2025 - 23.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableCollection.java
* guarantees detailed below. * * <p><b>Warning:</b> avoid <i>direct</i> usage of {@link ImmutableCollection} as a type (just as * with {@link Collection} itself). Prefer subtypes such as {@link ImmutableSet} or {@link * ImmutableList}, which have well-defined {@link #equals} semantics, thus avoiding a common source * of bugs and confusion. * * <h3>About <i>all</i> {@code Immutable-} collections</h3>
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 18.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/net/MediaTypeTest.java
assertEquals("application", newType.type()); assertEquals("yams", newType.subtype()); } public void testCreateAudioType() { MediaType newType = MediaType.createAudioType("yams"); assertEquals("audio", newType.type()); assertEquals("yams", newType.subtype()); } public void testCreateFontType() { MediaType newType = MediaType.createFontType("yams");
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 20.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableCollection.java
* guarantees detailed below. * * <p><b>Warning:</b> avoid <i>direct</i> usage of {@link ImmutableCollection} as a type (just as * with {@link Collection} itself). Prefer subtypes such as {@link ImmutableSet} or {@link * ImmutableList}, which have well-defined {@link #equals} semantics, thus avoiding a common source * of bugs and confusion. * * <h3>About <i>all</i> {@code Immutable-} collections</h3>
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 21.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java
* <li>Nulls test is not performed on method return values unless the method is a non-private * static factory method whose return type is {@code cls} or {@code cls}'s subtype. * </ul> */ public void testNulls(Class<?> cls) { try { doTestNulls(cls, Visibility.PACKAGE); } catch (Exception e) { throwIfUnchecked(e); throw new RuntimeException(e);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 32.5K bytes - Viewed (0)