Home
last modified time | relevance | path

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

12

/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.java405 E oldValue = get(elements, index); in set() local
407 if (oldValue != element) { in set()
416 return oldValue; in set()
476 E oldValue = get(elements, index); in remove() local
487 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()
/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.java864 default boolean replace(K key, V oldValue, V newValue) { in replace() argument
866 if (!Objects.equals(curValue, oldValue) || in replace()
1074 V oldValue; in computeIfPresent() local
1075 if ((oldValue = get(key)) != null) { in computeIfPresent()
1076 V newValue = remappingFunction.apply(key, oldValue); in computeIfPresent()
1166 V oldValue = get(key); in compute() local
1168 V newValue = remappingFunction.apply(key, oldValue); in compute()
1171 if (oldValue != null || containsKey(key)) { in compute()
1265 V oldValue = get(key); in merge() local
1266 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.java608 V oldValue = p.value; in remove()
610 return oldValue; in remove()
981 public boolean replace(K key, V oldValue, V newValue) { in replace() argument
983 if (p!=null && Objects.equals(oldValue, p.value)) { in replace()
994 V oldValue = p.value; in replace() local
996 return oldValue; in replace()
2127 V oldValue = this.value; in setValue() local
2129 return oldValue; in setValue()
DCollections.java1571 public boolean replace(K key, V oldValue, V newValue) {
2713 public boolean replace(K key, V oldValue, V newValue) {
2714 synchronized (mutex) {return m.replace(key, oldValue, newValue);}
3729 public boolean replace(K key, V oldValue, V newValue) {
3731 return m.replace(key, oldValue, newValue);
4674 public boolean replace(K key, V oldValue, V newValue) {
4986 public boolean replace(K key, V oldValue, V newValue) {
/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/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
/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()
/libcore/ojluni/src/main/java/java/util/logging/
DLogManager.java1795 Object oldValue, Object newValue) in newPropertyChangeEvent() argument
1798 return propertyEventCtor.newInstance(source, prop, oldValue, newValue); in newPropertyChangeEvent()
/libcore/ojluni/annotations/hiddenapi/java/util/logging/
DLogManager.java295 java.lang.Object oldValue, in newPropertyChangeEvent() argument

12