public class CountingInstanceSink extends Object implements InstanceSink
Constructor and Description |
---|
CountingInstanceSink(InstanceSink decoratee)
Create a counting instance sink
|
Modifier and Type | Method and Description |
---|---|
void |
addInstance(Instance instance)
Adds an instance to the sink
|
protected void |
countChanged(int count)
Called when the count has been incremented
|
public CountingInstanceSink(InstanceSink decoratee)
decoratee
- the internal instance sink to usepublic void addInstance(Instance instance)
InstanceSink
addInstance
in interface InstanceSink
instance
- the instance to addInstanceSink.addInstance(Instance)
protected void countChanged(int count)
count
- the current countBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a