/external/guava/guava-tests/test/com/google/common/reflect/ |
D | MutableTypeToInstanceMapTest.java | 70 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/ |
D | MutableClassToInstanceMapTest.java | 65 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/ |
D | TypeToInstanceMap.java | 73 <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
|
D | ImmutableTypeToInstanceMap.java | 113 @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
|
D | MutableTypeToInstanceMap.java | 56 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/ |
D | ClassToInstanceMap.java | 65 <T extends B> T putInstance(Class<T> type, @Nullable T value); in putInstance() method
|
D | MutableClassToInstanceMap.java | 72 public <T extends B> T putInstance(Class<T> type, T value) { in putInstance() method in MutableClassToInstanceMap
|
D | ImmutableClassToInstanceMap.java | 161 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/ |
D | NullPointerTester.java | 82 defaults.putInstance(type, checkNotNull(value)); in setDefault()
|
D | ClassSanityTester.java | 131 defaultValues.putInstance(type, value); in setDefault()
|