Home
last modified time | relevance | path

Searched refs:putInstance (Results 1 – 10 of 10) sorted by relevance

/external/guava/guava-tests/test/com/google/common/reflect/
DMutableTypeToInstanceMapTest.java70 map.putInstance(entry.getKey(), entry.getValue()); in suite()
110 map.putInstance(String.class, "test"); in testEntrySetMutationThrows()
120 map.putInstance(String.class, "test"); in testEntrySetToArrayMutationThrows()
132 map.putInstance(String.class, "test"); in testEntrySetToTypedArrayMutationThrows()
144 assertNull(map.putInstance(Integer.class, new Integer(5))); in testPutAndGetInstance()
146 Integer oldValue = map.putInstance(Integer.class, new Integer(7)); in testPutAndGetInstance()
158 map.putInstance((TypeToken) null, new Integer(1)); in testNull()
162 map.putInstance(Integer.class, null); in testNull()
166 map.putInstance(Long.class, null); in testNull()
175 assertNull(map.putInstance(int.class, 0)); in testPrimitiveAndWrapper()
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DMutableClassToInstanceMapTest.java65 map.putInstance(entry.getKey(), entry.getValue()); in suite()
110 assertNull(map.putInstance(Integer.class, new Integer(5))); in testPutAndGetInstance()
112 Integer oldValue = map.putInstance(Integer.class, new Integer(7)); in testPutAndGetInstance()
127 map.putInstance(Integer.class, null); in testNull()
140 assertNull(map.putInstance(int.class, 0)); in testPrimitiveAndWrapper()
141 assertNull(map.putInstance(Integer.class, 1)); in testPrimitiveAndWrapper()
147 assertEquals(0, (int) map.putInstance(int.class, null)); in testPrimitiveAndWrapper()
148 assertEquals(1, (int) map.putInstance(Integer.class, null)); in testPrimitiveAndWrapper()
/external/guava/guava/src/com/google/common/reflect/
DTypeToInstanceMap.java73 <T extends B> T putInstance(Class<T> type, @Nullable T value); in putInstance() method
91 <T extends B> T putInstance(TypeToken<T> type, @Nullable T value); in putInstance() method
DImmutableTypeToInstanceMap.java113 @Override public <T extends B> T putInstance(TypeToken<T> type, T value) { in putInstance() method in ImmutableTypeToInstanceMap
126 @Override public <T extends B> T putInstance(Class<T> type, T value) { in putInstance() method in ImmutableTypeToInstanceMap
DMutableTypeToInstanceMap.java56 public <T extends B> T putInstance(Class<T> type, @Nullable T value) { in putInstance() method in MutableTypeToInstanceMap
68 public <T extends B> T putInstance(TypeToken<T> type, @Nullable T value) { in putInstance() method in MutableTypeToInstanceMap
/external/guava/guava/src/com/google/common/collect/
DClassToInstanceMap.java65 <T extends B> T putInstance(Class<T> type, @Nullable T value); in putInstance() method
DMutableClassToInstanceMap.java72 public <T extends B> T putInstance(Class<T> type, T value) { in putInstance() method in MutableClassToInstanceMap
DImmutableClassToInstanceMap.java161 public <T extends B> T putInstance(Class<T> type, T value) { in putInstance() method in ImmutableClassToInstanceMap
/external/guava/guava-testlib/src/com/google/common/testing/
DNullPointerTester.java82 defaults.putInstance(type, checkNotNull(value)); in setDefault()
DClassSanityTester.java131 defaultValues.putInstance(type, value); in setDefault()