Home
last modified time | relevance | path

Searched refs:newValue (Results 1 – 25 of 106) 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.java67 java.lang.Object obj, long offset, int expectedValue, int newValue); in compareAndSwapInt() argument
71 java.lang.Object obj, long offset, long expectedValue, long newValue); in compareAndSwapLong() argument
78 java.lang.Object newValue); in compareAndSwapObject() argument
84 public native void putIntVolatile(java.lang.Object obj, long offset, int newValue); in putIntVolatile() argument
90 public native void putLongVolatile(java.lang.Object obj, long offset, long newValue); in putLongVolatile() argument
97 java.lang.Object obj, long offset, java.lang.Object newValue); in putObjectVolatile() argument
103 public native void putInt(java.lang.Object obj, long offset, int newValue); in putInt() argument
106 public native void putOrderedInt(java.lang.Object obj, long offset, int newValue); in putOrderedInt() argument
112 public native void putLong(java.lang.Object obj, long offset, long newValue); in putLong() argument
115 public native void putOrderedLong(java.lang.Object obj, long offset, long newValue); in putOrderedLong() argument
[all …]
/libcore/ojluni/annotations/mmodule/sun/misc/
DUnsafe.annotated.java93 public native void putBoolean(Object obj, long offset, boolean newValue); in putBoolean() argument
96 public native void putByte(long address, byte newValue); in putByte() argument
99 public native void putByte(Object obj, long offset, byte newValue); in putByte() argument
102 public native void putDouble(Object obj, long offset, double newValue); in putDouble() argument
105 public native void putFloat(Object obj, long offset, float newValue); in putFloat() argument
108 public native void putInt(long address, int newValue); in putInt() argument
111 public native void putInt(Object obj, long offset, int newValue); in putInt() argument
114 public native void putLong(long address, long newValue); in putLong() argument
117 public native void putLong(Object obj, long offset, long newValue); in putLong() argument
120 public native void putObject(Object obj, long offset, Object newValue); in putObject() argument
/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()
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()
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()
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()
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()
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()
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()
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()
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()
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_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()
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