/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ConcurrentMap.java | 222 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 …]
|
D | CopyOnWriteArrayList.java | 405 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()
|
D | ConcurrentSkipListMap.java | 1980 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/ |
D | PropertyChangeSupport.java | 261 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 …]
|
D | PropertyChangeEvent.java | 61 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
|
D | IndexedPropertyChangeEvent.java | 59 Object oldValue, Object newValue, in IndexedPropertyChangeEvent() argument 61 super (source, propertyName, oldValue, newValue); in IndexedPropertyChangeEvent()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Map.java | 864 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 …]
|
D | EnumMap.java | 270 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()
|
D | AbstractMap.java | 251 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()
|
D | Hashtable.java | 506 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()
|
D | HashMap.java | 300 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 …]
|
D | ArrayList.java | 455 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()
|
D | Vector.java | 768 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()
|
D | IdentityHashMap.java | 431 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()
|
D | WeakHashMap.java | 455 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()
|
D | TreeMap.java | 608 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()
|
D | Collections.java | 1571 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/ |
D | LinuxDosFileAttributeView.java | 262 int oldValue = getDosAttribute(fd); 263 int newValue = oldValue; 269 if (newValue != oldValue) {
|
/libcore/ojluni/src/main/java/java/security/ |
D | Provider.java | 430 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/ |
D | HashMap.annotated.java | 71 public boolean replace(@libcore.util.NullFromTypeParam K key, @libcore.util.Nullable V oldValue, @l… in replace() argument
|
D | TreeMap.annotated.java | 114 public boolean replace(@libcore.util.NullFromTypeParam K key, @libcore.util.Nullable V oldValue, @l… in replace() argument
|
/libcore/ojluni/annotations/mmodule/java/security/ |
D | Provider.annotated.java | 69 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/ |
D | CalendarTest.java | 389 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/ |
D | LogManager.java | 1795 Object oldValue, Object newValue) in newPropertyChangeEvent() argument 1798 return propertyEventCtor.newInstance(source, prop, oldValue, newValue); in newPropertyChangeEvent()
|
/libcore/ojluni/annotations/hiddenapi/java/util/logging/ |
D | LogManager.java | 295 java.lang.Object oldValue, in newPropertyChangeEvent() argument
|