Skip to main content

ObservedInteger

ObservedInteger

Kind: global class

new ObservedInteger([value])

ParamTypeDefault
[value]Number0

observedInteger.onChanged : Signal

Kind: instance property of ObservedInteger
Read only: true

observedInteger.isObservedInteger : boolean

Kind: instance property of ObservedInteger
Read only: true

observedInteger.valueOf() ⇒ Number

Kind: instance method of ObservedInteger

observedInteger.set(value) ⇒ ObservedInteger

Kind: instance method of ObservedInteger

ParamType
valueNumber

observedInteger.setSilent(value)

Set value without dispatching change notification

Kind: instance method of ObservedInteger

ParamType
valuenumber

observedInteger.isZero() ⇒ boolean

Kind: instance method of ObservedInteger

observedInteger.subtract(other)

Kind: instance method of ObservedInteger

ParamType
otherObservedInteger

observedInteger._subtract(value)

Kind: instance method of ObservedInteger

ParamType
valuenumber

observedInteger.add(other)

Kind: instance method of ObservedInteger

ParamType
otherObservedInteger

observedInteger._add(value)

Kind: instance method of ObservedInteger

ParamType
valuenumber

observedInteger.increment()

Increment the stored value by 1, same as adding 1

Kind: instance method of ObservedInteger

observedInteger.decrement()

Decrement the stored value by 1, same as subtracting 1

Kind: instance method of ObservedInteger

observedInteger.getValue() ⇒ Number

Kind: instance method of ObservedInteger

observedInteger.copy(other)

Kind: instance method of ObservedInteger

ParamType
otherObservedInteger

observedInteger.equals(other) ⇒ boolean

Kind: instance method of ObservedInteger

ParamType
otherObservedInteger

observedInteger.hash() ⇒ Number

Kind: instance method of ObservedInteger

observedInteger.toBinaryBuffer(buffer)

Kind: instance method of ObservedInteger

ParamType
bufferBinaryBuffer

observedInteger.fromBinaryBuffer(buffer)

Kind: instance method of ObservedInteger

ParamType
bufferBinaryBuffer