public class AtomicLongMax
extends java.lang.Object
| Constructor | Description |
|---|---|
AtomicLongMax(long initialValue) |
| Modifier and Type | Method | 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 (c) 2002, 2018 Oracle and/or its affiliates. All rights reserved.