Package ucar.nc2.util
Class Counters.Counter
- java.lang.Object
-
- ucar.nc2.util.Counters.Counter
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTo(Counters.Counter sub)
boolean
count(Comparable value)
Integer
getCount(Comparable key)
Comparable
getFirst()
Comparable
getLast()
Comparable
getMode()
String
getName()
int
getTotal()
int
getUnique()
Set<Comparable>
getValues()
void
reset()
Counters.Counter
setShowRange(boolean showRange)
void
show(Formatter f)
String
showRange()
-
-
-
Constructor Detail
-
Counter
public Counter(String name)
-
-
Method Detail
-
getName
public String getName()
-
setShowRange
public Counters.Counter setShowRange(boolean showRange)
-
reset
public void reset()
-
count
public boolean count(Comparable value)
-
addTo
public void addTo(Counters.Counter sub)
-
getUnique
public int getUnique()
-
getValues
public Set<Comparable> getValues()
-
getCount
public Integer getCount(Comparable key)
-
getFirst
public Comparable getFirst()
-
getLast
public Comparable getLast()
-
getMode
@Nullable public Comparable getMode()
-
getTotal
public int getTotal()
-
show
public void show(Formatter f)
-
showRange
public String showRange()
-
-