org.jwall.audit.script.utils
Class Counter
java.lang.Object
org.jwall.audit.script.utils.Counter
public class Counter
- extends Object
This is a very simple counter class that is provided to all scripts
and can be used to track the count of event properties when iterating
over multiple events.
- Author:
- Christian Bockermann <chris@jwall.org>
Counter
public Counter()
reset
public void reset()
count
public void count(String value)
get
public Double get(String value)
set
public void set(String value,
Double count)
getTotal
public Double getTotal()
sum
public Double sum(Collection<String> keys)
Copyright © 2012 jwall.org. All Rights Reserved.