Class Trend


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

      Fields 
      Modifier and Type Field Description
      static boolean REVERSED
      When a trend is reversed increase is "bad" (red) and decrease is "good" (green)
    • Constructor Summary

      Constructors 
      Constructor Description
      Trend​(double before, double after, boolean reversed, Formatter<java.lang.Double> formatter)  
      Trend​(long before, long after, boolean reversed)  
      Trend​(long before, long after, boolean reversed, Formatter<java.lang.Long> formatter)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDirection()  
      java.lang.String getText()  
      boolean isReversed()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • 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 Detail

      • Trend

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

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

        public Trend​(double before,
                     double after,
                     boolean reversed,
                     Formatter<java.lang.Double> formatter)
    • Method Detail

      • getText

        public java.lang.String getText()
      • getDirection

        public java.lang.String getDirection()
      • isReversed

        public boolean isReversed()