Searched refs:putIfAbsent (Results 1 - 25 of 99) sorted by relevance

1234

/external/guava/guava/src/com/google/common/collect/
H A DForwardingConcurrentMap.java42 public V putIfAbsent(K key, V value) { method in class:ForwardingConcurrentMap
43 return delegate().putIfAbsent(key, value);
H A DInterners.java48 E canonical = map.putIfAbsent(checkNotNull(sample), sample);
85 Dummy sneaky = map.putIfAbsent(sample, Dummy.VALUE);
H A DConcurrentHashMultiset.java221 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 DConcurrentMap.java28 V putIfAbsent(K key, V value); method in interface:ConcurrentMap
/external/junit/src/main/java/org/junit/validator/
H A DAnnotationValidatorFactory.java35 VALIDATORS_FOR_ANNOTATION_TYPES.putIfAbsent(validateWithAnnotation, annotationValidator);
/external/slf4j/log4j-over-slf4j/src/main/java/org/apache/log4j/
H A DLog4jLoggerFactory.java62 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 DMockMethodDispatcher.java25 INSTANCE.putIfAbsent(identifier, dispatcher);
/external/slf4j/slf4j-api/src/main/java/org/slf4j/helpers/
H A DBasicMarkerFactory.java70 Marker oldMarker = markerMap.putIfAbsent(name, marker);
H A DSubstituteLoggerFactory.java49 SubstituteLogger oldLogger = loggers.putIfAbsent(name, logger);
/external/slf4j/slf4j-jdk14/src/main/java/org/slf4j/impl/
H A DJDK14LoggerFactory.java65 Logger oldInstance = loggerMap.putIfAbsent(name, newInstance);
/external/slf4j/slf4j-log4j12/src/main/java/org/slf4j/impl/
H A DLog4jLoggerFactory.java66 Logger oldInstance = loggerMap.putIfAbsent(name, newInstance);
/external/slf4j/slf4j-simple/src/main/java/org/slf4j/impl/
H A DSimpleLoggerFactory.java56 Logger oldInstance = loggerMap.putIfAbsent(name, newInstance);
/external/guava/guava-tests/test/com/google/common/collect/
H A DForwardingConcurrentMapTest.java43 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 DAtomicLongMap.java108 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 DApplicationVersionSignature.java28 result = PACKAGE_NAME_TO_KEY.putIfAbsent(packageName, toAdd);
/external/icu/android_icu4j/src/main/java/android/icu/impl/
H A DSoftCache.java48 // 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 DSoftCache.java46 // 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 DListenerStatus.java59 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 DObjenesisBase.java95 instantiator = cache.putIfAbsent(clazz.getName(), newInstantiator);
/external/slf4j/slf4j-jcl/src/main/java/org/slf4j/impl/
H A DJCLLoggerFactory.java79 Logger oldInstance = loggerMap.putIfAbsent(name, newInstance);
/external/icu/android_icu4j/src/main/java/android/icu/impl/locale/
H A DLocaleObjectCache.java51 entry = _map.putIfAbsent(key, newEntry);
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/impl/locale/
H A DLocaleObjectCache.java47 entry = _map.putIfAbsent(key, newEntry);
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/
H A DLocaleObjectCache.java47 entry = _map.putIfAbsent(key, newEntry);
/external/slf4j/slf4j-android/src/main/java/org/slf4j/impl/
H A DAndroidLoggerFactory.java53 Logger oldInstance = loggerMap.putIfAbsent(tag, newInstance);
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/builder/
H A DBuilderStringPool.java53 ret = internedItems.putIfAbsent(string, stringReference);

Completed in 653 milliseconds

1234