org.javimmutable.collections.common
Class MutableDelta
java.lang.Object
org.javimmutable.collections.common.MutableDelta
- All Implemented Interfaces:
- Func1<Integer,Integer>
public class MutableDelta
- extends Object
- implements Func1<Integer,Integer>
Mutable object for tracking changes from zero.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MutableDelta
public MutableDelta()
add
public void add(int increment)
subtract
public void subtract(int decrement)
getValue
public int getValue()
apply
public Integer apply(Integer callerValue)
- Specified by:
apply
in interface Func1<Integer,Integer>
Copyright © 2014 Burton Computer Corporation. All rights reserved.