atomic
class in package klyn.threading

    public class atomic extends Object:

Object
└ atomic

Atomic long compatibility type used by threading tests.

This class is intentionally lightweight and focused on increment/decrement operators used in Klyn test scenarios.

Properties

Modifier and Type | Member | Description
--- | --- | ---
public readonly property | value `value as Long:` | Returns current numeric value.

Inherited Properties
property Inherited Properties from Object: type
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | atomic `atomic(value as Long):` | Creates an atomic value from a long.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public override | toString `toString() as String:` | String representation of the current value.

Inherited Methods
method Inherited Methods from Object: deepCopy, fromJson, toDict, toJson, toString, toXml
Operators

Modifier and Type | Member | Description
--- | --- | ---
public static | operator!=(readonly left as Long, readonly right as atomic) as Boolean: | Inequality with a long value.
public static | operator!=(readonly left as atomic, readonly right as Long) as Boolean: | Inequality with a long value.
public static | operator!=(readonly left as atomic, readonly right as atomic) as Boolean: | Inequality with another atomic value.
public static | operator++(readonly target as atomic) as Void: | Prefix/postfix increment.
public static | operator+=(readonly target as atomic, readonly delta as Long) as Void: | Adds a value in place.
public static | operator--(readonly target as atomic) as Void: | Prefix/postfix decrement.
public static | operator-=(readonly target as atomic, readonly delta as Long) as Void: | Subtracts a value in place.
public static | operator==(readonly left as Long, readonly right as atomic) as Boolean: | Equality with a long value.
public static | operator==(readonly left as atomic, readonly right as Long) as Boolean: | Equality with a long value.
public static | operator==(readonly left as atomic, readonly right as atomic) as Boolean: | Equality with another atomic value.