T
- values typepublic class DailySortedMap<T> extends TreeMap<Date,T>
SortedMap
,
Serialized FormAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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) |
clear, clone, comparator, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, keySet, lastEntry, lastKey, navigableKeySet, pollFirstEntry, pollLastEntry, remove, size, values
equals, hashCode, isEmpty, toString
public DailySortedMap()
public DailySortedMap(Comparator<? super Date> comparator)
comparator
- comparatorpublic DailySortedMap(Map<? extends Date,? extends T> m)
m
- init mappublic 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 NavigableMap<Date,T> headMap(Date toKey, boolean inclusive)
public Map.Entry<Date,T> higherEntry(Date key)
higherEntry
in interface NavigableMap<Date,T>
higherEntry
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 NavigableMap<Date,T> subMap(Date fromKey, boolean fromInclusive, Date toKey, boolean toInclusive)
public NavigableMap<Date,T> tailMap(Date fromKey, boolean inclusive)
Copyright © 2007–2013 CodeLutin. All rights reserved.