java.lang.Object
net.i2p.router.web.GraphRenderer.StatMeta
- Enclosing class:
GraphRenderer
Explicit metadata for stat rendering behavior. Replaces fragile string-index heuristics with typed lookups.
Field Summary
FieldsModifier and TypeFieldDescription(package private) final intUnit base for the stat, 1000 or 1024.(package private) final booleanTrue when the stat shows no decimal places.(package private) final booleanTrue for one decimal place, false for two.Constructor Summary
ConstructorsConstructorDescriptionStatMeta(int base, boolean noDecimalPlace, boolean singleDecimalPlace) Holds the display metadata for one stat.Method Summary
Field Details
base
final int baseUnit base for the stat, 1000 or 1024.noDecimalPlace
final boolean noDecimalPlaceTrue when the stat shows no decimal places.singleDecimalPlace
final boolean singleDecimalPlaceTrue for one decimal place, false for two.
Constructor Details
StatMeta
StatMeta(int base, boolean noDecimalPlace, boolean singleDecimalPlace) Holds the display metadata for one stat.- Parameters:
base- the unit basenoDecimalPlace- whether decimals are droppedsingleDecimalPlace- whether one decimal place is used