Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentMap.java222 boolean replace(K key, V oldValue, V newValue); in replace() argument
330 V oldValue, newValue; in computeIfAbsent() local
331 return ((oldValue = get(key)) == null in computeIfAbsent()
333 && (oldValue = putIfAbsent(key, newValue)) == null) in computeIfAbsent()
335 : oldValue; in computeIfAbsent()
372 for (V oldValue; (oldValue = get(key)) != null; ) { in computeIfPresent()
373 V newValue = remappingFunction.apply(key, oldValue); in computeIfPresent()
375 ? remove(key, oldValue) in computeIfPresent()
376 : replace(key, oldValue, newValue)) in computeIfPresent()
420 V oldValue = get(key); in compute() local
[all …]
DCopyOnWriteArrayList.java410 E oldValue = get(elements, index); in set() local
412 if (oldValue != element) { in set()
421 return oldValue; in set()
481 E oldValue = get(elements, index); in remove() local
492 return oldValue; in remove()
DConcurrentSkipListMap.java1980 public boolean replace(K key, V oldValue, V newValue) { in replace() argument
1981 if (key == null || oldValue == null || newValue == null) in replace()
1988 if (!oldValue.equals(v)) in replace()
2894 public boolean replace(K key, V oldValue, V newValue) { in replace() argument
2896 return m.replace(key, oldValue, newValue); in replace()
DConcurrentHashMap.java1570 public boolean replace(K key, V oldValue, V newValue) { in replace() argument
1571 if (key == null || oldValue == null || newValue == null) in replace()
1573 return replaceNode(key, newValue, oldValue) != null; in replace()
1624 V oldValue = p.val; in replaceAll() local
1626 V newValue = function.apply(key, oldValue); in replaceAll()
1629 if (replaceNode(key, newValue, oldValue) != null || in replaceAll()
1630 (oldValue = get(key)) == null) in replaceAll()
/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/main/java/java/util/
DMap.java836 default boolean replace(K key, V oldValue, V newValue) { in replace() argument
838 if (!Objects.equals(curValue, oldValue) || in replace()
1046 V oldValue; in computeIfPresent() local
1047 if ((oldValue = get(key)) != null) { in computeIfPresent()
1048 V newValue = remappingFunction.apply(key, oldValue); in computeIfPresent()
1138 V oldValue = get(key); in compute() local
1140 V newValue = remappingFunction.apply(key, oldValue); in compute()
1143 if (oldValue != null || containsKey(key)) { in compute()
1237 V oldValue = get(key); in merge() local
1238 V newValue = (oldValue == null) ? value : in merge()
[all …]
DEnumMap.java270 Object oldValue = vals[index]; in put() local
272 if (oldValue == null) in put()
274 return unmaskNull(oldValue); in put()
290 Object oldValue = vals[index]; in remove() local
292 if (oldValue != null) in remove()
294 return unmaskNull(oldValue); in remove()
603 V oldValue = unmaskNull(vals[index]); in setValue() local
605 return oldValue; in setValue()
DAbstractMap.java251 V oldValue = null; in remove() local
253 oldValue = correctEntry.getValue(); in remove()
256 return oldValue; in remove()
664 V oldValue = this.value; in setValue() local
666 return oldValue; in setValue()
DHashtable.java506 V oldValue = e.value; in remove() local
508 return oldValue; in remove()
961 public synchronized boolean replace(K key, V oldValue, V newValue) { in replace() argument
962 Objects.requireNonNull(oldValue); in replace()
971 if (e.value.equals(oldValue)) { in replace()
992 V oldValue = e.value; in replace() local
994 return oldValue; in replace()
1298 V oldValue = this.value; in setValue() local
1300 return oldValue; in setValue()
DHashMap.java300 V oldValue = value; in setValue() local
302 return oldValue; in setValue()
653 V oldValue = e.value; in putVal() local
654 if (!onlyIfAbsent || oldValue == null) in putVal()
657 return oldValue; in putVal()
1073 public boolean replace(K key, V oldValue, V newValue) { in replace() argument
1076 ((v = e.value) == oldValue || (v != null && v.equals(oldValue)))) { in replace()
1088 V oldValue = e.value; in replace() local
1091 return oldValue; in replace()
1123 V oldValue; in computeIfAbsent() local
[all …]
DArrayList.java455 E oldValue = (E) elementData[index]; in set() local
457 return oldValue; in set()
506 E oldValue = (E) elementData[index]; in remove() local
514 return oldValue; in remove()
1042 E oldValue = (E) ArrayList.this.elementData[offset + index]; in set() local
1044 return oldValue; in set()
DVector.java768 E oldValue = elementData(index); in set() local
770 return oldValue; in set()
832 E oldValue = elementData(index); in remove() local
840 return oldValue; in remove()
DIdentityHashMap.java431 V oldValue = (V) tab[i + 1]; in put() local
433 return oldValue; in put()
530 V oldValue = (V) tab[i + 1]; in remove() local
534 return oldValue; in remove()
876 V oldValue = (V) traversalTable[index+1]; in setValue() local
881 return oldValue; in setValue()
DWeakHashMap.java455 V oldValue = e.value; in put() local
456 if (value != oldValue) in put()
458 return oldValue; in put()
729 V oldValue = value; in setValue() local
731 return oldValue; in setValue()
DTreeMap.java634 V oldValue = p.value; in remove()
636 return oldValue; in remove()
1007 public boolean replace(K key, V oldValue, V newValue) { in replace() argument
1009 if (p!=null && Objects.equals(oldValue, p.value)) { in replace()
1020 V oldValue = p.value; in replace() local
1022 return oldValue; in replace()
2153 V oldValue = this.value; in setValue() local
2155 return oldValue; in setValue()
DCollections.java1566 public boolean replace(K key, V oldValue, V newValue) {
2706 public boolean replace(K key, V oldValue, V newValue) {
2707 synchronized (mutex) {return m.replace(key, oldValue, newValue);}
3721 public boolean replace(K key, V oldValue, V newValue) {
3723 return m.replace(key, oldValue, newValue);
4663 public boolean replace(K key, V oldValue, V newValue) {
4975 public boolean replace(K key, V oldValue, V newValue) {
DArrays.java3774 E oldValue = a[index]; in set() local
3776 return oldValue; in set()
/libcore/ojluni/src/main/java/sun/nio/fs/
DLinuxDosFileAttributeView.java262 int oldValue = getDosAttribute(fd);
263 int newValue = oldValue;
269 if (newValue != oldValue) {
/libcore/ojluni/src/main/java/java/security/
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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DCalendarTest.java389 int oldValue = cal.get(Calendar.AM_PM); in test_setII() local
390 int newValue = (oldValue == Calendar.AM) ? Calendar.PM : Calendar.AM; in test_setII()
393 assertTrue(newValue != oldValue); in test_setII()
DEnumMapTest.java70 V oldValue = value; in setValue() local
72 return oldValue; in setValue()
/libcore/ojluni/src/main/java/java/util/logging/
DLogManager.java1805 Object oldValue, Object newValue) in newPropertyChangeEvent() argument
1808 return propertyEventCtor.newInstance(source, prop, oldValue, newValue); in newPropertyChangeEvent()