org.javimmutable.collections.common
Class MutableDelta

java.lang.Object
  extended by 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.


Constructor Summary
MutableDelta()
           
 
Method Summary
 void add(int increment)
           
 Integer apply(Integer callerValue)
           
 int getValue()
           
 void subtract(int decrement)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MutableDelta

public MutableDelta()
Method Detail

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.