MutableRef17
Constructors
Models
Boolean
General
compareAndSetconstSets the value to newValue atomically if the current value equals oldValue.getconstGets the current value of the MutableRef.getAndSetconstSets the MutableRef to a new value and returns the previous value.getAndUpdateconstUpdates the MutableRef with the result of applying a function to its current value, and returns the previous value.setconstSets the MutableRef to a new value and returns the reference.setAndGetconstSets the MutableRef to a new value and returns the new value.updateconstUpdates the MutableRef with the result of applying a function to its current value, and returns the reference.updateAndGetconstUpdates the MutableRef with the result of applying a function to its current value, and returns the new value.Numeric
decrementconstDecrements a numeric MutableRef by 1 and returns the reference.decrementAndGetconstDecrements a numeric MutableRef by 1 and returns the new value.getAndDecrementconstDecrements a numeric MutableRef by 1 and returns the previous value.getAndIncrementconstIncrements a numeric MutableRef by 1 and returns the previous value.incrementconstIncrements a numeric MutableRef by 1 and returns the reference.incrementAndGetconstIncrements a numeric MutableRef by 1 and returns the new value.