public class AtomicLongMax extends Object
| Constructor and Description |
|---|
AtomicLongMax(long initialValue) |
| Modifier and Type | Method and Description |
|---|---|
long |
get()
Gets the current value.
|
long |
set(long newValue)
Set the value to newValue and returns the old value.
|
long |
updateMax(long newMax)
Updates the max value if the argument is greater than the current max.
|
Copyright © 2024. All rights reserved.