MCPcopy Create free account
hub / github.com/dhale/jtk / compareAndSet

Method compareAndSet

core/src/main/java/edu/mines/jtk/util/AtomicFloat.java:78–80  ·  view source on GitHub ↗

Atomically sets this float to the specified updated value if the current value equals the specified expected value. @param expect the expected value. @param update the updated value. @return true, if successfully set; false, if the current value was not equal to the expected value.

(float expect, float update)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

getAndAddMethod · 0.45
addAndGetMethod · 0.45

Calls 1

iMethod · 0.95

Tested by

no test coverage detected