final class AtomicLongExtras extends AnyVal
- Alphabetic
- By Inheritance
- AtomicLongExtras
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new AtomicLongExtras(value: AtomicLong)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
def
++: Long
Increments and returns the new value
-
def
+=(value: Long): Long
Adds the value and returns the new value
-
def
--: Long
Decrements and returns the new value
-
def
-=(value: Long): Long
Subtracts the value and returns the new value
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
decrementIfGreaterThan(min: Long): Boolean
Decrements the value if the current value is greater than the max value supplied.
Decrements the value if the current value is greater than the max value supplied.
This method is thread-safe without locking.
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
def
incrementIfLessThan(max: Int): Boolean
Increments the value if the current value is less than the max value supplied.
Increments the value if the current value is less than the max value supplied.
This method is thread-safe without locking.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
modify(f: (Long) ⇒ Option[Long]): Boolean
Modifies the value atomicly without locking if the resulting value of the function is Some.
Modifies the value atomicly without locking if the resulting value of the function is Some.
- Annotations
- @tailrec()
- def setIfCondition(condition: (Long) ⇒ Boolean, value: Long): Boolean
-
def
toString(): String
- Definition Classes
- Any
- val value: AtomicLong