- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for putInstance (0.12 sec)
-
android/guava-tests/test/com/google/common/collect/MutableClassToInstanceMapTest.java
assertThat(map.putInstance(int.class, 0)).isNull(); assertThat(map.putInstance(Integer.class, 1)).isNull(); assertEquals(2, map.size()); assertEquals(0, (int) map.getInstance(int.class)); assertEquals(1, (int) map.getInstance(Integer.class)); assertEquals(0, (int) map.putInstance(int.class, null)); assertEquals(1, (int) map.putInstance(Integer.class, null));Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 5K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/TypeToInstanceMap.java
* of the class's supertypes. * * <p>{@code putInstance(Foo.class, foo)} is equivalent to {@code * putInstance(TypeToken.of(Foo.class), foo)}. * * @return the value previously associated with this class (possibly {@code null}), or {@code * null} if there was no previous entry. */ @CanIgnoreReturnValue <T extends B> @Nullable T putInstance(Class<@NonNull T> type, @ParametricNullness T value); /**
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.7K bytes - Viewed (0) -
guava/src/com/google/common/reflect/TypeToInstanceMap.java
* of the class's supertypes. * * <p>{@code putInstance(Foo.class, foo)} is equivalent to {@code * putInstance(TypeToken.of(Foo.class), foo)}. * * @return the value previously associated with this class (possibly {@code null}), or {@code * null} if there was no previous entry. */ @CanIgnoreReturnValue <T extends B> @Nullable T putInstance(Class<@NonNull T> type, @ParametricNullness T value); /**
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.7K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/MutableTypeToInstanceMap.java
} @Override @CanIgnoreReturnValue public <T extends B> @Nullable T putInstance( Class<@NonNull T> type, @ParametricNullness T value) { return trustedPut(TypeToken.of(type), value); } @Override @CanIgnoreReturnValue public <T extends B> @Nullable T putInstance( TypeToken<@NonNull T> type, @ParametricNullness T value) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 5.7K bytes - Viewed (0) -
guava/src/com/google/common/reflect/MutableTypeToInstanceMap.java
} @Override @CanIgnoreReturnValue public <T extends B> @Nullable T putInstance( Class<@NonNull T> type, @ParametricNullness T value) { return trustedPut(TypeToken.of(type), value); } @Override @CanIgnoreReturnValue public <T extends B> @Nullable T putInstance( TypeToken<@NonNull T> type, @ParametricNullness T value) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 5.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ClassToInstanceMap.java
/** * 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. * * <p>Like any other {@code Map<Class, Object>}, this map may contain entries for primitive types, * and a primitive type and its corresponding wrapper type may map to different values.
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 2.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/MutableClassToInstanceMap.java
cast(entry.getKey(), entry.getValue()); } super.putAll(copy); } @CanIgnoreReturnValue @Override public <T extends B> @Nullable T putInstance( Class<@NonNull T> type, @ParametricNullness T value) { return cast(type, put(type, value)); } @Override public <T extends @NonNull B> @Nullable T getInstance(Class<T> type) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 22:10:29 UTC 2025 - 6.7K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/NullPointerTester.java
* object. */ @CanIgnoreReturnValue public <T> NullPointerTester setDefault(Class<T> type, T value) { defaults.putInstance(type, checkNotNull(value)); return this; } /** * Ignore {@code method} in the tests that follow. Returns this object. * * @since 13.0 */ @CanIgnoreReturnValue
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 25.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/NullPointerTester.java
* object. */ @CanIgnoreReturnValue public <T> NullPointerTester setDefault(Class<T> type, T value) { defaults.putInstance(type, checkNotNull(value)); return this; } /** * Ignore {@code method} in the tests that follow. Returns this object. * * @since 13.0 */ @CanIgnoreReturnValue
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 24.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java
*/ @CanIgnoreReturnValue public <T> ClassSanityTester setDefault(Class<T> type, T value) { nullPointerTester.setDefault(type, value); defaultValues.putInstance(type, value); return this; } /** * Sets distinct values for {@code type}, so that when a class {@code Foo} is tested for {@link
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 32.5K bytes - Viewed (0)