java.lang.Object
com.djrapitops.plan.delivery.rendering.json.Trend

public class Trend extends Object
Represents a trend in the data - used for JSON format.
  • Field Details

    • REVERSED

      public static final boolean REVERSED
      When a trend is reversed increase is "bad" (red) and decrease is "good" (green)
      See Also:
      Constant Field Values
  • Constructor Details

    • Trend

      public Trend(long before, long after, boolean reversed)
    • Trend

      public Trend(long before, long after, boolean reversed, Formatter<Long> formatter)
    • Trend

      public Trend(double before, double after, boolean reversed, Formatter<Double> formatter)
  • Method Details

    • getText

      public String getText()
    • getDirection

      public String getDirection()
    • isReversed

      public boolean isReversed()