org.gridkit.jvmtool.stacktrace
Class CounterArray

java.lang.Object
  extended by org.gridkit.jvmtool.stacktrace.CounterArray
All Implemented Interfaces:
Iterable<String>, CounterCollection

public class CounterArray
extends Object
implements CounterCollection


Field Summary
static CounterArray EMPTY
           
 
Constructor Summary
CounterArray()
           
CounterArray(String[] names, long[] values)
           
 
Method Summary
 CounterArray clone()
           
 void copyFrom(CounterCollection cc)
           
 long getValue(String key)
           
 Iterator<String> iterator()
           
 void reset()
           
 void set(String key, long value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY

public static CounterArray EMPTY
Constructor Detail

CounterArray

public CounterArray()

CounterArray

public CounterArray(String[] names,
                    long[] values)
Method Detail

iterator

public Iterator<String> iterator()
Specified by:
iterator in interface Iterable<String>

getValue

public long getValue(String key)
Specified by:
getValue in interface CounterCollection

clone

public CounterArray clone()
Specified by:
clone in interface CounterCollection
Overrides:
clone in class Object

copyFrom

public void copyFrom(CounterCollection cc)

set

public void set(String key,
                long value)

reset

public void reset()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2019. All Rights Reserved.