public class TickUpdateHandlerFixture extends Object implements ITickUpdateHandler
DEFAULT_TICK_UPDATE_HANDLER| Constructor and Description |
|---|
TickUpdateHandlerFixture() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getDecrementedValue(Object currentValue)
Perform an decrement of the current value by a default value.
|
Object |
getDecrementedValue(Object currentValue,
double decrementSize)
Perform an decrement of the current value by the given decrement value.
|
Object |
getIncrementedValue(Object currentValue)
Perform an increment of the current value by a default value.
|
Object |
getIncrementedValue(Object currentValue,
double incrementSize)
Perform an increment of the current value by the given increment value.
|
boolean |
isApplicableFor(Object value)
Checks if the given object can be handled by this handler.
|
public boolean isApplicableFor(Object value)
ITickUpdateHandlerisApplicableFor in interface ITickUpdateHandlervalue - The value to check.true if this handler is able to perform
tick updates on the given value, false
if not.public Object getDecrementedValue(Object currentValue)
ITickUpdateHandlergetDecrementedValue in interface ITickUpdateHandlercurrentValue - The value to perform the decrement on.public Object getIncrementedValue(Object currentValue)
ITickUpdateHandlergetIncrementedValue in interface ITickUpdateHandlercurrentValue - The value to perform the increment on.public Object getIncrementedValue(Object currentValue, double incrementSize)
ITickUpdateHandlergetIncrementedValue in interface ITickUpdateHandlercurrentValue - The value to perform the increment on.incrementSize - The value the currentValue should be incremented by.public Object getDecrementedValue(Object currentValue, double decrementSize)
ITickUpdateHandlergetDecrementedValue in interface ITickUpdateHandlercurrentValue - The value to perform the decrement on.decrementSize - The value the currentValue should be decremented by.Copyright © 2013. All Rights Reserved.