Home
last modified time | relevance | path

Searched refs:oldValue (Results 1 – 25 of 38) sorted by relevance

12

/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentMap.java220 boolean replace(K key, V oldValue, V newValue); in replace() argument
328 V oldValue, newValue; in computeIfAbsent() local
329 return ((oldValue = get(key)) == null in computeIfAbsent()
331 && (oldValue = putIfAbsent(key, newValue)) == null) in computeIfAbsent()
333 : oldValue; in computeIfAbsent()
370 for (V oldValue; (oldValue = get(key)) != null; ) { in computeIfPresent()
371 V newValue = remappingFunction.apply(key, oldValue); in computeIfPresent()
373 ? remove(key, oldValue) in computeIfPresent()
374 : replace(key, oldValue, newValue)) in computeIfPresent()
418 V oldValue = get(key); in compute() local
[all …]
DCopyOnWriteArrayList.java414 E oldValue = elementAt(es, index); in set() local
416 if (oldValue != element) { in set()
422 return oldValue; in set()
482 E oldValue = elementAt(es, index); in remove() local
494 return oldValue; in remove()
/libcore/ojluni/src/main/java/java/beans/
DPropertyChangeSupport.java261 public void firePropertyChange(String propertyName, Object oldValue, Object newValue) { in firePropertyChange() argument
262 if (oldValue == null || newValue == null || !oldValue.equals(newValue)) { in firePropertyChange()
263 … firePropertyChange(new PropertyChangeEvent(this.source, propertyName, oldValue, newValue)); in firePropertyChange()
281 public void firePropertyChange(String propertyName, int oldValue, int newValue) { in firePropertyChange() argument
282 if (oldValue != newValue) { in firePropertyChange()
283 firePropertyChange(propertyName, Integer.valueOf(oldValue), Integer.valueOf(newValue)); in firePropertyChange()
301 public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) { in firePropertyChange() argument
302 if (oldValue != newValue) { in firePropertyChange()
303 firePropertyChange(propertyName, Boolean.valueOf(oldValue), Boolean.valueOf(newValue)); in firePropertyChange()
317 Object oldValue = event.getOldValue(); in firePropertyChange() local
[all …]
DPropertyChangeEvent.java61 Object oldValue, Object newValue) { in PropertyChangeEvent() argument
65 this.oldValue = oldValue; in PropertyChangeEvent()
95 return oldValue; in getOldValue()
137 private Object oldValue; field in PropertyChangeEvent
DIndexedPropertyChangeEvent.java59 Object oldValue, Object newValue, in IndexedPropertyChangeEvent() argument
61 super (source, propertyName, oldValue, newValue); in IndexedPropertyChangeEvent()
/libcore/ojluni/src/test/java/util/HashMap/
DSetValue.java40 static final String oldValue = "old"; field in SetValue
46 m.put(key, oldValue); in test()
49 Assert.assertEquals(returnVal, oldValue); in test()
/libcore/ojluni/src/test/java/util/Map/
DGet.java63 Boolean oldValue) { in put() argument
64 if (oldValue != null) { in put()
65 Assert.assertTrue(m.containsValue(oldValue)); in put()
66 Assert.assertTrue(m.values().contains(oldValue)); in put()
68 Assert.assertEquals(m.put(key, value), oldValue); in put() local
DDefaults.java466 …public void testMerge(String description, Map<IntegerEnum, String> map, Merging.Value oldValue, Me… in testMerge() argument
468 switch (oldValue) { in testMerge()
927 public String apply(String oldValue, String newValue) {
933 public String apply(String oldValue, String newValue) {
938 public String apply(String oldValue, String newValue) {
/libcore/luni/src/test/java/libcore/java/util/
DPriorityQueueTest.java69 (k, oldValue) -> oldValue == null ? 1 : oldValue + 1)); in forEach_followPriorityQueueInArbitraryOrder()
/libcore/ojluni/src/main/java/java/security/
DUnresolvedPermissionCollection.java89 List<UnresolvedPermission> oldValue) { in add() argument
90 if (oldValue == null) { in add()
96 oldValue.add(up); in add()
97 return oldValue; in add()
DProvider.java430 public synchronized boolean replace(Object key, Object oldValue, in replace() argument
437 return implReplace(key, oldValue, newValue); in replace()
771 private boolean implReplace(Object key, Object oldValue, Object newValue) { in implReplace() argument
772 if ((key instanceof String) && (oldValue instanceof String) && in implReplace()
777 legacyStrings.replace((String)key, (String)oldValue, in implReplace()
780 return super.replace(key, oldValue, newValue); in implReplace()
/libcore/ojluni/src/main/java/java/util/
DMap.java910 default boolean replace(K key, V oldValue, V newValue) { in replace() argument
912 if (!Objects.equals(curValue, oldValue) || in replace()
1120 V oldValue; in computeIfPresent() local
1121 if ((oldValue = get(key)) != null) { in computeIfPresent()
1122 V newValue = remappingFunction.apply(key, oldValue); in computeIfPresent()
1206 V oldValue = get(key); in compute() local
1208 V newValue = remappingFunction.apply(key, oldValue); in compute()
1211 if (oldValue != null || containsKey(key)) { in compute()
1305 V oldValue = get(key); in merge() local
1306 V newValue = (oldValue == null) ? value : in merge()
[all …]
DEnumMap.java268 Object oldValue = vals[index]; in put() local
270 if (oldValue == null) in put()
272 return unmaskNull(oldValue); in put()
288 Object oldValue = vals[index]; in remove() local
290 if (oldValue != null) in remove()
292 return unmaskNull(oldValue); in remove()
596 V oldValue = unmaskNull(vals[index]); in setValue() local
598 return oldValue; in setValue()
DAbstractMap.java251 V oldValue = null; in remove() local
253 oldValue = correctEntry.getValue(); in remove()
256 return oldValue; in remove()
666 V oldValue = this.value; in setValue() local
668 return oldValue; in setValue()
DHashtable.java523 V oldValue = e.value; in remove() local
525 return oldValue; in remove()
981 public synchronized boolean replace(K key, V oldValue, V newValue) { in replace() argument
982 Objects.requireNonNull(oldValue); in replace()
991 if (e.value.equals(oldValue)) { in replace()
1012 V oldValue = e.value; in replace() local
1014 return oldValue; in replace()
1409 V oldValue = this.value; in setValue() local
1411 return oldValue; in setValue()
DHashMap.java301 V oldValue = value; in setValue() local
303 return oldValue; in setValue()
650 V oldValue = e.value; in putVal() local
651 if (!onlyIfAbsent || oldValue == null) in putVal()
654 return oldValue; in putVal()
1154 public boolean replace(K key, V oldValue, V newValue) { in replace() argument
1157 ((v = e.value) == oldValue || (v != null && v.equals(oldValue)))) { in replace()
1169 V oldValue = e.value; in replace() local
1172 return oldValue; in replace()
1214 V oldValue; in computeIfAbsent() local
[all …]
DVector.java770 E oldValue = elementData(index); in set() local
772 return oldValue; in set()
845 E oldValue = elementData(index); in remove() local
853 return oldValue; in remove()
DIdentityHashMap.java436 V oldValue = (V) tab[i + 1]; in put() local
438 return oldValue; in put()
535 V oldValue = (V) tab[i + 1]; in remove() local
539 return oldValue; in remove()
879 V oldValue = (V) traversalTable[index+1]; in setValue() local
884 return oldValue; in setValue()
DArrayList.java449 E oldValue = elementData(index); in set() local
451 return oldValue; in set()
514 @SuppressWarnings("unchecked") E oldValue = (E) es[index]; in remove() local
517 return oldValue; in remove()
1160 E oldValue = root.elementData(offset + index); in set() local
1162 return oldValue; in set()
DWeakHashMap.java461 V oldValue = e.value; in put() local
462 if (value != oldValue) in put()
464 return oldValue; in put()
733 V oldValue = value; in setValue() local
735 return oldValue; in setValue()
DTreeMap.java606 V oldValue = p.value; in remove()
608 return oldValue; in remove()
978 public boolean replace(K key, V oldValue, V newValue) { in replace() argument
980 if (p!=null && Objects.equals(oldValue, p.value)) { in replace()
991 V oldValue = p.value; in replace() local
993 return oldValue; in replace()
2124 V oldValue = this.value; in setValue() local
2126 return oldValue; in setValue()
/libcore/ojluni/src/main/java/sun/nio/fs/
DLinuxDosFileAttributeView.java262 int oldValue = getDosAttribute(fd);
263 int newValue = oldValue;
269 if (newValue != oldValue) {
/libcore/ojluni/annotations/sdk/nullability/java/util/
DHashMap.annotated.java71 public boolean replace(@libcore.util.NullFromTypeParam K key, @libcore.util.Nullable V oldValue, @l… in replace() argument
DTreeMap.annotated.java114 public boolean replace(@libcore.util.NullFromTypeParam K key, @libcore.util.Nullable V oldValue, @l… in replace() argument
/libcore/ojluni/annotations/mmodule/java/security/
DProvider.annotated.java69 public synchronized boolean replace(java.lang.Object key, java.lang.Object oldValue, java.lang.Obje… in replace() argument

12