Home
last modified time | relevance | path

Searched refs:newValue (Results 1 – 25 of 105) sorted by relevance

12345

/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
332 && (newValue = mappingFunction.apply(key)) != null in computeIfAbsent()
333 && (oldValue = putIfAbsent(key, newValue)) == null) in computeIfAbsent()
334 ? newValue in computeIfAbsent()
373 V newValue = remappingFunction.apply(key, oldValue); in computeIfPresent() local
374 if ((newValue == null) in computeIfPresent()
376 : replace(key, oldValue, newValue)) in computeIfPresent()
377 return newValue; in computeIfPresent()
423 V newValue = remappingFunction.apply(key, oldValue); in compute() local
[all …]
/libcore/ojluni/src/main/java/sun/misc/
DUnsafe.java135 int expectedValue, int newValue); in compareAndSwapInt() argument
151 long expectedValue, long newValue); in compareAndSwapLong() argument
167 Object expectedValue, Object newValue); in compareAndSwapObject() argument
189 public native void putIntVolatile(Object obj, long offset, int newValue); in putIntVolatile() argument
211 public native void putLongVolatile(Object obj, long offset, long newValue); in putLongVolatile() argument
234 Object newValue); in putObjectVolatile() argument
254 public native void putInt(Object obj, long offset, int newValue); in putInt() argument
260 public native void putOrderedInt(Object obj, long offset, int newValue); in putOrderedInt() argument
280 public native void putLong(Object obj, long offset, long newValue); in putLong() argument
286 public native void putOrderedLong(Object obj, long offset, long newValue); in putOrderedLong() argument
[all …]
/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()
318 Object newValue = event.getNewValue(); in firePropertyChange() local
[all …]
DPropertyChangeEvent.java61 Object oldValue, Object newValue) { in PropertyChangeEvent() argument
64 this.newValue = newValue; in PropertyChangeEvent()
85 return newValue; in getNewValue()
131 private Object newValue; field in PropertyChangeEvent
/libcore/ojluni/annotations/hiddenapi/sun/misc/
DUnsafe.java66 java.lang.Object obj, long offset, int expectedValue, int newValue); in compareAndSwapInt() argument
70 java.lang.Object obj, long offset, long expectedValue, long newValue); in compareAndSwapLong() argument
77 java.lang.Object newValue); in compareAndSwapObject() argument
83 public native void putIntVolatile(java.lang.Object obj, long offset, int newValue); in putIntVolatile() argument
89 public native void putLongVolatile(java.lang.Object obj, long offset, long newValue); in putLongVolatile() argument
96 java.lang.Object obj, long offset, java.lang.Object newValue); in putObjectVolatile() argument
102 public native void putInt(java.lang.Object obj, long offset, int newValue); in putInt() argument
105 public native void putOrderedInt(java.lang.Object obj, long offset, int newValue); in putOrderedInt() argument
111 public native void putLong(java.lang.Object obj, long offset, long newValue); in putLong() argument
114 public native void putOrderedLong(java.lang.Object obj, long offset, long newValue); in putOrderedLong() argument
[all …]
/libcore/ojluni/src/main/java/java/util/
DMap.java836 default boolean replace(K key, V oldValue, V newValue) { in replace() argument
842 put(key, newValue); in replace()
971 V newValue; in computeIfAbsent() local
972 if ((newValue = mappingFunction.apply(key)) != null) { in computeIfAbsent()
973 put(key, newValue); in computeIfAbsent()
974 return newValue; in computeIfAbsent()
1048 V newValue = remappingFunction.apply(key, oldValue); in computeIfPresent() local
1049 if (newValue != null) { in computeIfPresent()
1050 put(key, newValue); in computeIfPresent()
1051 return newValue; in computeIfPresent()
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DAtomicBoolean.java128 public final void set(boolean newValue) { in set() argument
129 value = newValue ? 1 : 0; in set()
138 public final void lazySet(boolean newValue) { in lazySet() argument
139 U.putOrderedInt(this, VALUE, (newValue ? 1 : 0)); in lazySet()
148 public final boolean getAndSet(boolean newValue) { in getAndSet() argument
152 } while (!compareAndSet(prev, newValue)); in getAndSet()
DAtomicReferenceFieldUpdater.java158 public abstract void set(T obj, V newValue); in set() argument
168 public abstract void lazySet(T obj, V newValue); in lazySet() argument
187 public V getAndSet(T obj, V newValue) { in getAndSet() argument
191 } while (!compareAndSet(obj, prev, newValue)); in getAndSet()
433 public final void set(T obj, V newValue) { in set() argument
435 valueCheck(newValue); in set()
436 U.putObjectVolatile(obj, offset, newValue); in set()
439 public final void lazySet(T obj, V newValue) { in lazySet() argument
441 valueCheck(newValue); in lazySet()
442 U.putOrderedObject(obj, offset, newValue); in lazySet()
[all …]
/libcore/ojluni/src/main/java/java/util/prefs/
DPreferenceChangeEvent.java59 private String newValue; field in PreferenceChangeEvent
70 String newValue) { in PreferenceChangeEvent() argument
73 this.newValue = newValue; in PreferenceChangeEvent()
101 return newValue; in getNewValue()
/libcore/dom/src/test/java/org/w3c/domts/level1/core/
Dhc_nodevalue06.java60 String newValue; in runTest() local
62 newValue = newNode.getNodeValue(); in runTest()
63 assertNull("initiallyNull", newValue); in runTest()
65 newValue = newNode.getNodeValue(); in runTest()
66 assertNull("nullAfterAttemptedChange", newValue); in runTest()
Dnodevalue06.java60 String newValue; in runTest() local
62 newValue = newNode.getNodeValue(); in runTest()
63 assertNull("initiallyNull", newValue); in runTest()
65 newValue = newNode.getNodeValue(); in runTest()
66 assertNull("nullAfterAttemptedChange", newValue); in runTest()
Dhc_nodevalue01.java61 String newValue; in runTest() local
64 newValue = newNode.getNodeValue(); in runTest()
65 assertNull("initiallyNull", newValue); in runTest()
67 newValue = newNode.getNodeValue(); in runTest()
68 assertNull("nullAfterAttemptedChange", newValue); in runTest()
Dnodevalue02.java61 String newValue; in runTest() local
64 newValue = newNode.getNodeValue(); in runTest()
65 assertEquals("initial", "This is a new Comment node", newValue); in runTest()
67 newValue = newNode.getNodeValue(); in runTest()
68 assertEquals("afterChange", "This should have an effect", newValue); in runTest()
Dnodevalue05.java61 String newValue; in runTest() local
64 newValue = newNode.getNodeValue(); in runTest()
65 assertNull("initiallyNull", newValue); in runTest()
67 newValue = newNode.getNodeValue(); in runTest()
68 assertNull("nullAfterAttemptedChange", newValue); in runTest()
Dhc_nodevalue05.java61 String newValue; in runTest() local
64 newValue = newNode.getNodeValue(); in runTest()
65 assertNull("initiallyNull", newValue); in runTest()
67 newValue = newNode.getNodeValue(); in runTest()
68 assertNull("nullAfterAttemptedChange", newValue); in runTest()
Dnodevalue09.java61 String newValue; in runTest() local
64 newValue = newNode.getNodeValue(); in runTest()
65 assertEquals("initial", "DATA", newValue); in runTest()
67 newValue = newNode.getNodeValue(); in runTest()
68 assertEquals("after", "This should have an effect", newValue); in runTest()
Dnodevalue01.java61 String newValue; in runTest() local
64 newValue = newNode.getNodeValue(); in runTest()
65 assertNull("initiallyNull", newValue); in runTest()
67 newValue = newNode.getNodeValue(); in runTest()
68 assertNull("nullAfterAttemptedChange", newValue); in runTest()
Dhc_nodevalue02.java61 String newValue; in runTest() local
64 newValue = newNode.getNodeValue(); in runTest()
65 assertEquals("initial", "This is a new Comment node", newValue); in runTest()
67 newValue = newNode.getNodeValue(); in runTest()
68 assertEquals("afterChange", "This should have an effect", newValue); in runTest()
Dnodevalue03.java61 String newValue; in runTest() local
65 newValue = newNode.getNodeValue(); in runTest()
66 assertNull("initiallyNull", newValue); in runTest()
68 newValue = newNode.getNodeValue(); in runTest()
69 assertNull("nullAfterAttemptedChange", newValue); in runTest()
Dnodevalue04.java61 String newValue; in runTest() local
65 newValue = newNode.getNodeValue(); in runTest()
66 assertNull("initiallyNull", newValue); in runTest()
68 newValue = newNode.getNodeValue(); in runTest()
69 assertNull("nullAfterAttemptedChange", newValue); in runTest()
Dhc_nodevalue04.java61 String newValue; in runTest() local
70 newValue = newNode.getNodeValue(); in runTest()
71 assertNull("initiallyNull", newValue); in runTest()
73 newValue = newNode.getNodeValue(); in runTest()
74 assertNull("nullAfterAttemptedChange", newValue); in runTest()
Dhc_nodevalue03.java61 String newValue; in runTest() local
78 newValue = newNode.getNodeValue(); in runTest()
79 assertNull("initiallyNull", newValue); in runTest()
81 newValue = newNode.getNodeValue(); in runTest()
82 assertNull("nullAfterAttemptedChange", newValue); in runTest()
Dnodevalue08.java62 String newValue; in runTest() local
71 newValue = newNode.getNodeValue(); in runTest()
72 assertNull("initiallyNull", newValue); in runTest()
74 newValue = newNode.getNodeValue(); in runTest()
75 assertNull("nullAfterAttemptedChange", newValue); in runTest()
Dnodevalue07.java61 String newValue; in runTest() local
71 newValue = newNode.getNodeValue(); in runTest()
72 assertNull("initiallyNull", newValue); in runTest()
74 newValue = newNode.getNodeValue(); in runTest()
75 assertNull("nullAfterAttemptedChange", newValue); in runTest()
Dhc_nodevalue08.java65 String newValue; in runTest() local
78 newValue = newNode.getNodeValue(); in runTest()
79 assertNull("initiallyNull", newValue); in runTest()
81 newValue = newNode.getNodeValue(); in runTest()
82 assertNull("nullAfterAttemptedChange", newValue); in runTest()

12345