public abstract class OverrideIncrement<T extends Comparable<T>> extends Object implements Increment<T>
Constructor and Description |
---|
OverrideIncrement(T value) |
Modifier and Type | Method and Description |
---|---|
protected abstract OverrideIncrement<T> |
createOverrideIncrement(T value) |
void |
decrease(T delta) |
OverrideIncrement<T> |
decreaseForNew(T delta) |
T |
getValue() |
void |
increase(T delta) |
OverrideIncrement<T> |
increaseForNew(T delta) |
void |
setValue(T value) |
public OverrideIncrement(T value)
public void decrease(T delta)
public OverrideIncrement<T> decreaseForNew(T delta)
decreaseForNew
in interface Increment<T extends Comparable<T>>
public void increase(T delta)
public OverrideIncrement<T> increaseForNew(T delta)
increaseForNew
in interface Increment<T extends Comparable<T>>
public void setValue(T value)
protected abstract OverrideIncrement<T> createOverrideIncrement(T value)