Class DateMap<T>

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Long,​T>, java.util.NavigableMap<java.lang.Long,​T>, java.util.SortedMap<java.lang.Long,​T>

    public class DateMap<T>
    extends java.util.TreeMap<java.lang.Long,​T>
    Basic TreeMap that uses Epoch MS as keys.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      DateMap()  
      DateMap​(java.util.Map<java.lang.Long,​T> map)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int countBetween​(long after, long before)  
      boolean hasValuesBetween​(long after, long before)  
      • Methods inherited from class java.util.TreeMap

        ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, forEach, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, values
      • Methods inherited from class java.util.AbstractMap

        equals, hashCode, isEmpty, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, equals, getOrDefault, hashCode, isEmpty, merge, putIfAbsent, remove
    • Constructor Detail

      • DateMap

        public DateMap()
      • DateMap

        public DateMap​(java.util.Map<java.lang.Long,​T> map)
    • Method Detail

      • hasValuesBetween

        public boolean hasValuesBetween​(long after,
                                        long before)
      • countBetween

        public int countBetween​(long after,
                                long before)