Searched defs:putIfAbsent (Results 1 - 6 of 6) sorted by relevance

/libcore/luni/src/main/java/java/util/concurrent/
H A DConcurrentMap.java25 * methods including {@link #putIfAbsent} inherited from {@link Map}
130 V putIfAbsent(K key, V value); method in interface:ConcurrentMap
282 * && (oldValue = map.putIfAbsent(key, newValue)) == null)
304 && (oldValue = putIfAbsent(key, newValue)) == null)
367 * : map.putIfAbsent(key, newValue) == null)
392 // if putIfAbsent fails, opportunistically use its return value
400 else if ((oldValue = putIfAbsent(key, newValue)) == null)
429 * } else if (map.putIfAbsent(key, value) == null) {
454 // if putIfAbsent fails, opportunistically use its return value
466 if ((oldValue = putIfAbsent(ke
[all...]
H A DConcurrentSkipListMap.java60 * associated map using {@code put}, {@code putIfAbsent}, or
1925 public V putIfAbsent(K key, V value) { method in class:ConcurrentSkipListMap
2856 public V putIfAbsent(K key, V value) { method in class:ConcurrentSkipListMap.SubMap
2858 return m.putIfAbsent(key, value);
H A DConcurrentHashMap.java988 /** Implementation for put and putIfAbsent */
1521 public V putIfAbsent(K key, V value) { method in class:ConcurrentHashMap
/libcore/ojluni/src/main/java/java/util/
H A DMap.java743 default V putIfAbsent(K key, V value) { method in interface:Map
H A DHashtable.java900 public synchronized V putIfAbsent(K key, V value) { method in class:Hashtable
901 return Map.super.putIfAbsent(key, value);
H A DCollections.java1498 public V putIfAbsent(K key, V value) { method in class:Collections.UnmodifiableMap
2384 public V putIfAbsent(K key, V value) { method in class:Collections.SynchronizedMap
2385 synchronized (mutex) {return m.putIfAbsent(key, value);}
3114 public V putIfAbsent(K key, V value) { method in class:Collections.CheckedMap
3116 return m.putIfAbsent(key, value);
3803 public V putIfAbsent(K key, V value) { method in class:Collections.EmptyMap
4118 public V putIfAbsent(K key, V value) { method in class:Collections.SingletonMap

Completed in 364 milliseconds