java.lang.Object
net.i2p.router.web.GraphRenderer.StatMeta
Enclosing class:
GraphRenderer

private static final class GraphRenderer.StatMetaextends Object
Explicit metadata for stat rendering behavior. Replaces fragile string-index heuristics with typed lookups.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) final int
    Unit base for the stat, 1000 or 1024.
    (package private) final boolean
    True when the stat shows no decimal places.
    (package private) final boolean
    True for one decimal place, false for two.
  • Constructor Summary

    Constructors
    Constructor
    Description
    StatMeta(int base, boolean noDecimalPlace, boolean singleDecimalPlace)
    Holds the display metadata for one stat.
  • Method Summary

    Methods inherited from class Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • base

      final int base
      Unit base for the stat, 1000 or 1024.
    • noDecimalPlace

      final boolean noDecimalPlace
      True when the stat shows no decimal places.
    • singleDecimalPlace

      final boolean singleDecimalPlace
      True 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 base
      noDecimalPlace - whether decimals are dropped
      singleDecimalPlace - whether one decimal place is used