/ fm / liveswitch / AtomicLong
Class: AtomicLong
fm.liveswitch.AtomicLong
Table of contents
Constructors
Properties
Methods
Constructors
constructor
+ new AtomicLong(startValue?
: number): AtomicLong
Parameters:
Name | Type |
---|---|
startValue? |
number |
Returns: AtomicLong
Defined in: Generated/TypeScript/fm.liveswitch/AtomicLong.ts:3
Properties
_value
• Private
_value: number
Defined in: Generated/TypeScript/fm.liveswitch/AtomicLong.ts:3
Methods
add
▸ add(value
: number): number
Parameters:
Name | Type |
---|---|
value |
number |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/AtomicLong.ts:29
compareAndSwap
▸ compareAndSwap(expected
: number, newValue
: number): number
Parameters:
Name | Type |
---|---|
expected |
number |
newValue |
number |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/AtomicLong.ts:13
decrement
▸ decrement(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/AtomicLong.ts:44
getValue
▸ getValue(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/AtomicLong.ts:25
increment
▸ increment(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/AtomicLong.ts:39
subtract
▸ subtract(value
: number): number
Parameters:
Name | Type |
---|---|
value |
number |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/AtomicLong.ts:34