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