/external/guava/guava/src/com/google/common/collect/ |
H A D | ForwardingConcurrentMap.java | 42 public V putIfAbsent(K key, V value) { method in class:ForwardingConcurrentMap 43 return delegate().putIfAbsent(key, value);
|
H A D | Interners.java | 48 E canonical = map.putIfAbsent(checkNotNull(sample), sample); 85 Dummy sneaky = map.putIfAbsent(sample, Dummy.VALUE);
|
H A D | ConcurrentHashMultiset.java | 221 existingCounter = countMap.putIfAbsent(element, new AtomicInteger(occurrences)); 246 if ((countMap.putIfAbsent(element, newCounter) == null) 358 existingCounter = countMap.putIfAbsent(element, new AtomicInteger(count)); 373 if ((countMap.putIfAbsent(element, newCounter) == null) 417 return countMap.putIfAbsent(element, new AtomicInteger(newCount)) == null; 429 return (countMap.putIfAbsent(element, newCounter) == null)
|
/external/guava/guava-gwt/src-super/java/util/super/java/util/concurrent/ |
H A D | ConcurrentMap.java | 28 V putIfAbsent(K key, V value); method in interface:ConcurrentMap
|
/external/junit/src/main/java/org/junit/validator/ |
H A D | AnnotationValidatorFactory.java | 35 VALIDATORS_FOR_ANNOTATION_TYPES.putIfAbsent(validateWithAnnotation, annotationValidator);
|
/external/slf4j/log4j-over-slf4j/src/main/java/org/apache/log4j/ |
H A D | Log4jLoggerFactory.java | 62 Logger oldInstance = log4jLoggers.putIfAbsent(name, newInstance); 73 Logger oldInstance = log4jLoggers.putIfAbsent(name, newInstance);
|
/external/mockito/src/main/java/org/mockito/internal/creation/bytebuddy/ |
H A D | MockMethodDispatcher.java | 25 INSTANCE.putIfAbsent(identifier, dispatcher);
|
/external/slf4j/slf4j-api/src/main/java/org/slf4j/helpers/ |
H A D | BasicMarkerFactory.java | 70 Marker oldMarker = markerMap.putIfAbsent(name, marker);
|
H A D | SubstituteLoggerFactory.java | 49 SubstituteLogger oldLogger = loggers.putIfAbsent(name, logger);
|
/external/slf4j/slf4j-jdk14/src/main/java/org/slf4j/impl/ |
H A D | JDK14LoggerFactory.java | 65 Logger oldInstance = loggerMap.putIfAbsent(name, newInstance);
|
/external/slf4j/slf4j-log4j12/src/main/java/org/slf4j/impl/ |
H A D | Log4jLoggerFactory.java | 66 Logger oldInstance = loggerMap.putIfAbsent(name, newInstance);
|
/external/slf4j/slf4j-simple/src/main/java/org/slf4j/impl/ |
H A D | SimpleLoggerFactory.java | 56 Logger oldInstance = loggerMap.putIfAbsent(name, newInstance);
|
/external/guava/guava-tests/test/com/google/common/collect/ |
H A D | ForwardingConcurrentMapTest.java | 43 assertEquals(Integer.valueOf(1), map.putIfAbsent("foo", 2)); 45 assertNull(map.putIfAbsent("bar", 3));
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
H A D | AtomicLongMap.java | 108 atomic = map.putIfAbsent(key, new AtomicLong(delta)); 157 atomic = map.putIfAbsent(key, new AtomicLong(delta)); 192 atomic = map.putIfAbsent(key, new AtomicLong(newValue)); 340 * first decrementing to zero, and then removing. putIfAbsent or replace could observe the 345 * - Define putIfAbsent and replace as treating zero and absent identically (as currently 346 * implemented below). This is a bit surprising with putIfAbsent, which really becomes 349 * - Allow putIfAbsent and replace to distinguish between zero and absent, but don't implement 364 long putIfAbsent(K key, long newValue) { method in class:AtomicLongMap 368 atomic = map.putIfAbsent(key, new AtomicLong(newValue)); 399 return putIfAbsent(ke [all...] |
/external/glide/library/src/main/java/com/bumptech/glide/signature/ |
H A D | ApplicationVersionSignature.java | 28 result = PACKAGE_NAME_TO_KEY.putIfAbsent(packageName, toAdd);
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
H A D | SoftCache.java | 48 // ConcurrentHashMap.putIfAbsent() never replaces the key's value, and if it were 74 mapValue = map.putIfAbsent(key, mapValue);
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
H A D | SoftCache.java | 46 // ConcurrentHashMap.putIfAbsent() never replaces the key's value, and if it were 72 mapValue = map.putIfAbsent(key, mapValue);
|
/external/jmdns/src/javax/jmdns/impl/ |
H A D | ListenerStatus.java | 59 if (null == _addedServices.putIfAbsent(qualifiedName, event.getInfo().clone())) { 99 if (null == _addedServices.putIfAbsent(qualifiedName, info.clone())) { 176 if (null == _addedTypes.putIfAbsent(event.getType(), event.getType())) { 194 if (null == _addedTypes.putIfAbsent(event.getType(), event.getType())) {
|
/external/objenesis/main/src/main/java/org/objenesis/ |
H A D | ObjenesisBase.java | 95 instantiator = cache.putIfAbsent(clazz.getName(), newInstantiator);
|
/external/slf4j/slf4j-jcl/src/main/java/org/slf4j/impl/ |
H A D | JCLLoggerFactory.java | 79 Logger oldInstance = loggerMap.putIfAbsent(name, newInstance);
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/locale/ |
H A D | LocaleObjectCache.java | 51 entry = _map.putIfAbsent(key, newEntry);
|
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/impl/locale/ |
H A D | LocaleObjectCache.java | 47 entry = _map.putIfAbsent(key, newEntry);
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/ |
H A D | LocaleObjectCache.java | 47 entry = _map.putIfAbsent(key, newEntry);
|
/external/slf4j/slf4j-android/src/main/java/org/slf4j/impl/ |
H A D | AndroidLoggerFactory.java | 53 Logger oldInstance = loggerMap.putIfAbsent(tag, newInstance);
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/builder/ |
H A D | BuilderStringPool.java | 53 ret = internedItems.putIfAbsent(string, stringReference);
|