|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.TreeMap<Date,T>
org.chorem.jtimer.utils.DailySortedMap<T>
T
- values typepublic class DailySortedMap<T>
SortedMap that return a unique value for all date for a day.
SortedMap
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
Constructor Summary | |
---|---|
DailySortedMap()
Constructs a new, empty tree map, using the natural ordering of its keys. |
|
DailySortedMap(Comparator<? super Date> comparator)
Constructs a new, empty tree map, ordered according to the given comparator. |
|
DailySortedMap(Map<? extends Date,? extends T> m)
Constructs a new tree map containing the same mappings as the given map, ordered according to the natural ordering of its keys. |
|
DailySortedMap(SortedMap<Date,? extends T> m)
Constructs a new tree map containing the same mappings and using the same ordering as the specified sorted map. |
Method Summary | |
---|---|
Map.Entry<Date,T> |
ceilingEntry(Date key)
|
Date |
ceilingKey(Date key)
|
boolean |
containsKey(Object key)
|
Map.Entry<Date,T> |
floorEntry(Date key)
|
Date |
floorKey(Date key)
|
T |
get(Object key)
|
protected Date |
getDayDate(Date date)
Get date at 0h00:00.000. |
SortedMap<Date,T> |
headMap(Date toKey)
|
NavigableMap<Date,T> |
headMap(Date toKey,
boolean inclusive)
|
Map.Entry<Date,T> |
higherEntry(Date key)
|
Date |
higherKey(Date key)
|
Map.Entry<Date,T> |
lowerEntry(Date key)
|
Date |
lowerKey(Date key)
|
T |
put(Date key,
T value)
|
void |
putAll(Map<? extends Date,? extends T> map)
|
NavigableMap<Date,T> |
subMap(Date fromKey,
boolean fromInclusive,
Date toKey,
boolean toInclusive)
|
SortedMap<Date,T> |
subMap(Date fromKey,
Date toKey)
|
SortedMap<Date,T> |
tailMap(Date fromKey)
|
NavigableMap<Date,T> |
tailMap(Date fromKey,
boolean inclusive)
|
Methods inherited from class java.util.TreeMap |
---|
clear, clone, comparator, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, keySet, lastEntry, lastKey, navigableKeySet, pollFirstEntry, pollLastEntry, remove, size, 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 |
---|
equals, hashCode, isEmpty |
Constructor Detail |
---|
public DailySortedMap()
public DailySortedMap(Comparator<? super Date> comparator)
comparator
- comparatorpublic DailySortedMap(Map<? extends Date,? extends T> m)
m
- init mappublic DailySortedMap(SortedMap<Date,? extends T> m)
m
- init mapMethod Detail |
---|
public Map.Entry<Date,T> ceilingEntry(Date key)
ceilingEntry
in interface NavigableMap<Date,T>
ceilingEntry
in class TreeMap<Date,T>
public Date ceilingKey(Date key)
ceilingKey
in interface NavigableMap<Date,T>
ceilingKey
in class TreeMap<Date,T>
public boolean containsKey(Object key)
containsKey
in interface Map<Date,T>
containsKey
in class TreeMap<Date,T>
public Map.Entry<Date,T> floorEntry(Date key)
floorEntry
in interface NavigableMap<Date,T>
floorEntry
in class TreeMap<Date,T>
public Date floorKey(Date key)
floorKey
in interface NavigableMap<Date,T>
floorKey
in class TreeMap<Date,T>
public T get(Object key)
get
in interface Map<Date,T>
get
in class TreeMap<Date,T>
public NavigableMap<Date,T> headMap(Date toKey, boolean inclusive)
headMap
in interface NavigableMap<Date,T>
headMap
in class TreeMap<Date,T>
public SortedMap<Date,T> headMap(Date toKey)
headMap
in interface NavigableMap<Date,T>
headMap
in interface SortedMap<Date,T>
headMap
in class TreeMap<Date,T>
public Map.Entry<Date,T> higherEntry(Date key)
higherEntry
in interface NavigableMap<Date,T>
higherEntry
in class TreeMap<Date,T>
public Date higherKey(Date key)
higherKey
in interface NavigableMap<Date,T>
higherKey
in class TreeMap<Date,T>
public Map.Entry<Date,T> lowerEntry(Date key)
lowerEntry
in interface NavigableMap<Date,T>
lowerEntry
in class TreeMap<Date,T>
public Date lowerKey(Date key)
lowerKey
in interface NavigableMap<Date,T>
lowerKey
in class TreeMap<Date,T>
public T put(Date key, T value)
put
in interface Map<Date,T>
put
in class TreeMap<Date,T>
public void putAll(Map<? extends Date,? extends T> map)
putAll
in interface Map<Date,T>
putAll
in class TreeMap<Date,T>
public NavigableMap<Date,T> subMap(Date fromKey, boolean fromInclusive, Date toKey, boolean toInclusive)
subMap
in interface NavigableMap<Date,T>
subMap
in class TreeMap<Date,T>
public SortedMap<Date,T> subMap(Date fromKey, Date toKey)
subMap
in interface NavigableMap<Date,T>
subMap
in interface SortedMap<Date,T>
subMap
in class TreeMap<Date,T>
public NavigableMap<Date,T> tailMap(Date fromKey, boolean inclusive)
tailMap
in interface NavigableMap<Date,T>
tailMap
in class TreeMap<Date,T>
public SortedMap<Date,T> tailMap(Date fromKey)
tailMap
in interface NavigableMap<Date,T>
tailMap
in interface SortedMap<Date,T>
tailMap
in class TreeMap<Date,T>
protected Date getDayDate(Date date)
date
- date to convert
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |