- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 57 for Raw (0.16 sec)
-
android/guava/src/com/google/common/reflect/TypeToken.java
public static TypeToken<?> of(Type type) { return new SimpleTypeToken<>(type); } /** * Returns the raw type of {@code T}. Formally speaking, if {@code T} is returned by {@link * java.lang.reflect.Method#getGenericReturnType}, the raw type is what's returned by {@link * java.lang.reflect.Method#getReturnType} of the same method object. Specifically: * * <ul>
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Jun 26 21:02:13 GMT 2023 - 53.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/SubtypeTester.java
} catch (IllegalArgumentException notSubtype1) { // The raw class isn't even a subclass. } } if (!spec.suppressGetSupertype()) { try { assertThat(getSupertype(paramType, TypeToken.of(returnType).getRawType())) .isNotEqualTo(returnType); } catch (IllegalArgumentException notSubtype2) { // The raw class isn't even a subclass. } } return null;
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Apr 19 19:24:36 GMT 2023 - 6.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/Interners.java
@SuppressWarnings("rawtypes") // using raw types to avoid a bug in our nullness checker :( InternalEntry entry = map.getEntry(sample); if (entry != null) { Object canonical = entry.getKey(); if (canonical != null) { // only matters if weak/soft keys are used // The compiler would know this is safe if not for our use of raw types (see above). @SuppressWarnings("unchecked")
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Mar 13 14:30:51 GMT 2023 - 5.9K bytes - Viewed (1) -
guava-tests/test/com/google/common/cache/ForwardingLoadingCacheTest.java
private LoadingCache<String, Boolean> mock; @SuppressWarnings({"unchecked", "DoNotMock"}) // mock @Override public void setUp() throws Exception { super.setUp(); /* * Class parameters must be raw, so we can't create a proxy with generic * type arguments. The created proxy only records calls and returns null, so * the type is irrelevant at runtime. */ mock = mock(LoadingCache.class); forward =
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Apr 17 12:41:04 GMT 2023 - 3.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/ClassToInstanceMap.java
import org.checkerframework.checker.nullness.qual.NonNull; import org.checkerframework.checker.nullness.qual.Nullable; /** * A map, each entry of which maps a Java <a href="http://tinyurl.com/2cmwkz">raw type</a> to an * instance of that type. In addition to implementing {@code Map}, the additional type-safe * operations {@link #putInstance} and {@link #getInstance} are available. *
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Sat Jun 17 14:40:53 GMT 2023 - 3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/TreeBasedTable.java
} /** * Creates an empty {@code TreeBasedTable} that uses the natural orderings of both row and column * keys. * * <p>The method signature specifies {@code R extends Comparable} with a raw {@link Comparable}, * instead of {@code R extends Comparable<? super R>}, and the same for {@code C}. That's * necessary to support classes defined without generics. */
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Feb 22 21:19:52 GMT 2024 - 11.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java
@SuppressWarnings("rawtypes") // Trying to test raw class TypeToken<List> tokL = new TypeToken<List>() {}; assertTrue(tokL.isSupertypeOf(StringList.class)); assertTrue(tokL.isSupertypeOf(StringList.class.getGenericInterfaces()[0])); @SuppressWarnings("rawtypes") // Trying to test raw class TypeToken<Second> tokS = new TypeToken<Second>() {};
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Feb 22 17:15:24 GMT 2024 - 88.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/ForwardingCacheTest.java
private Cache<String, Boolean> mock; @SuppressWarnings({"unchecked", "DoNotMock"}) // mock @Override public void setUp() throws Exception { super.setUp(); /* * Class parameters must be raw, so we can't create a proxy with generic * type arguments. The created proxy only records calls and returns null, so * the type is irrelevant at runtime. */ mock = mock(Cache.class); forward =
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Apr 17 12:41:04 GMT 2023 - 3.1K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/base/EnumsBenchmark.java
public class EnumsBenchmark { @Param({"Small", "Medium", "Large"}) String enumSize; @Param({"0.2", "0.8"}) float hitRate; // We could avoid the raw type here by initializing this with a ternary (? SmallEnum.class : ...). // However, we end up needing a raw type in getIfPresent, as discussed there. @SuppressWarnings("rawtypes") private Class<? extends Enum> enumType; private String[] sampleData;
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Feb 22 17:15:24 GMT 2024 - 29.4K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/base/EnumsBenchmark.java
public class EnumsBenchmark { @Param({"Small", "Medium", "Large"}) String enumSize; @Param({"0.2", "0.8"}) float hitRate; // We could avoid the raw type here by initializing this with a ternary (? SmallEnum.class : ...). // However, we end up needing a raw type in getIfPresent, as discussed there. @SuppressWarnings("rawtypes") private Class<? extends Enum> enumType; private String[] sampleData;
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Feb 22 17:15:24 GMT 2024 - 29.4K bytes - Viewed (0)