Class LongTermStatsImpl.MonthCache

  • Enclosing class:
    LongTermStatsImpl

    private class LongTermStatsImpl.MonthCache
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<java.lang.String,​java.util.List<java.lang.Long>> contents  
      private boolean dirty  
      private java.lang.String month  
      private java.lang.String year  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private MonthCache​(java.lang.String _year, java.lang.String _month)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.io.File getCacheFile()  
      private java.util.Map<java.lang.String,​java.util.List<java.lang.Long>> getContents()  
      private long[] getTotals​(int day)  
      private long[] getTotals​(int day, long start_offset)  
      private boolean isDirty()  
      private boolean isForMonth​(java.lang.String _year, java.lang.String _month)  
      private void save()  
      private void setTotals​(int day, long[] totals)  
      private void setTotals​(int day, long start_offset, long[] totals)  
      • Methods inherited from class java.lang.Object

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

      • year

        private final java.lang.String year
      • month

        private final java.lang.String month
      • dirty

        private boolean dirty
      • contents

        private java.util.Map<java.lang.String,​java.util.List<java.lang.Long>> contents
    • Constructor Detail

      • MonthCache

        private MonthCache​(java.lang.String _year,
                           java.lang.String _month)
    • Method Detail

      • getCacheFile

        private java.io.File getCacheFile()
      • isForMonth

        private boolean isForMonth​(java.lang.String _year,
                                   java.lang.String _month)
      • getContents

        private java.util.Map<java.lang.String,​java.util.List<java.lang.Long>> getContents()
      • getTotals

        private long[] getTotals​(int day)
      • getTotals

        private long[] getTotals​(int day,
                                 long start_offset)
      • setTotals

        private void setTotals​(int day,
                               long[] totals)
      • setTotals

        private void setTotals​(int day,
                               long start_offset,
                               long[] totals)
      • isDirty

        private boolean isDirty()
      • save

        private void save()