public class GenericStatsDecorator extends Object implements IDecorator<GenericStats>
| Constructor and Description |
|---|
GenericStatsDecorator(String name)
Constructs an instance of GenericStatsDecorator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCaption(String name,
String type)
Add a caption value.
|
int |
compareTo(net.anotheria.util.sorter.IComparable anotherComparable,
int method) |
List<StatCaptionBean> |
getCaptions()
Returns the captions for the stat table.
|
String |
getExplanation(String caption)
Returns an explanation for a caption.
|
String |
getName()
Returns the name of the decorator.
|
List<StatValueAO> |
getValues(GenericStats stats,
String interval,
TimeUnit unit)
Returns transformed stats for incoming stats object.
|
boolean |
isInitialized()
can be used to determine if decorator was initialized already.
|
String |
toString() |
public GenericStatsDecorator(String name)
public int compareTo(net.anotheria.util.sorter.IComparable anotherComparable,
int method)
compareTo in interface net.anotheria.util.sorter.IComparablepublic List<StatCaptionBean> getCaptions()
getCaptions in interface IDecorator<GenericStats>public boolean isInitialized()
public void addCaption(String name, String type)
name - the captiontype - short descriptionpublic String getExplanation(String caption)
getExplanation in interface IDecorator<GenericStats>public String getName()
getName in interface IDecorator<GenericStats>public List<StatValueAO> getValues(GenericStats stats, String interval, TimeUnit unit)
getValues in interface IDecorator<GenericStats>stats - stats to decorate.interval - the selected interval.unit - the selected time unit.Copyright © 2010-2015 anotheria.net. All Rights Reserved.