Reactor.RListener
ValueView.Listener<T>
Constructor and Description |
---|
IntValue(int value)
Creates an instance with the specified starting value.
|
Modifier and Type | Method and Description |
---|---|
int |
decrementClamp(int amount,
int min)
Decrements this value by
amount , clamping at min if the current value minus
amount is less than min . |
int |
increment(int amount)
Increments this value by
amount . |
int |
incrementClamp(int amount,
int max)
Increments this value by
amount , clamping at max if the current value plus
amount exceeds max . |
int |
incrementClamp(int amount,
int min,
int max)
Increments this value by
amount (or decrements if negative), clamping to the range
[min , max ]. |
changes, connect, connect, connect, connectNotify, connectNotify, connectNotify, disconnect, equals, flatMap, hashCode, map, toString, when
clearConnections, hasConnections
public IntValue(int value)
public int increment(int amount)
amount
.Value.update(T)
, which returns
the previous value.public int incrementClamp(int amount, int max)
amount
, clamping at max
if the current value plus
amount
exceeds max
.Value.update(T)
,
which returns the previous value.public int incrementClamp(int amount, int min, int max)
amount
(or decrements if negative), clamping to the range
[min
, max
].Value.update(T)
,
which returns the previous value.public int decrementClamp(int amount, int min)
amount
, clamping at min
if the current value minus
amount
is less than min
.Value.update(T)
,
which returns the previous value.Copyright © 2017. All rights reserved.