Package org.snpeff.stats
Class CountByKey<T>
java.lang.Object
org.snpeff.stats.CountByKey<T>
- All Implemented Interfaces:
Serializable
Counters indexed by key.
It's a generic version of CountByType
- Author:
- pcingola
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CountByKey
public CountByKey()
-
-
Method Details
-
get
How many counts of this type?- Parameters:
key
-- Returns:
-
inc
Increment (by 1)- Parameters:
key
-
-
inc
Increment counter for a given type- Parameters:
key
-
-
isEmpty
public boolean isEmpty() -
keySet
-
max
public long max()Maximum count -
min
public long min()Minimum count -
size
public int size() -
toString
-