|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.beanlib.utils.range.AbstractMap<K,V>
net.sf.beanlib.utils.range.ExtensibleTreeMap.SubMap
private class ExtensibleTreeMap.SubMap
| Nested Class Summary | |
|---|---|
private class |
ExtensibleTreeMap.SubMap.EntrySetView
|
| Nested classes/interfaces inherited from class net.sf.beanlib.utils.range.AbstractMap |
|---|
AbstractMap.SimpleEntry<K,V> |
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Field Summary | |
|---|---|
private Set<Map.Entry<K,V>> |
entrySet
|
private K |
fromKey
|
private boolean |
fromStart
fromKey is significant only if fromStart is false. |
private static long |
serialVersionUID
|
private boolean |
toEnd
fromKey is significant only if fromStart is false. |
private K |
toKey
|
| Fields inherited from class net.sf.beanlib.utils.range.AbstractMap |
|---|
keySet, values |
| Constructor Summary | |
|---|---|
ExtensibleTreeMap.SubMap(boolean fromStart,
K fromKey,
boolean toEnd,
K toKey)
|
|
ExtensibleTreeMap.SubMap(K key,
boolean headMap)
|
|
ExtensibleTreeMap.SubMap(K fromKey,
K toKey)
|
|
| Method Summary | |
|---|---|
Comparator<? super K> |
comparator()
|
boolean |
containsKey(Object key)
Returns true if this map contains a mapping for the specified key. |
Set<Map.Entry<K,V>> |
entrySet()
Returns a set view of the mappings contained in this map. |
K |
firstKey()
|
V |
get(Object key)
Returns the value to which this map maps the specified key. |
SortedMap<K,V> |
headMap(K toKey)
|
private boolean |
inRange(K key)
|
private boolean |
inRange2(K key)
|
boolean |
isEmpty()
Returns true if this map contains no key-value mappings. |
K |
lastKey()
|
V |
put(K key,
V value)
Associates the specified value with the specified key in this map (optional operation). |
SortedMap<K,V> |
subMap(K fromKey,
K toKey)
|
SortedMap<K,V> |
tailMap(K fromKey)
|
| Methods inherited from class net.sf.beanlib.utils.range.AbstractMap |
|---|
clear, clone, containsValue, equals, hashCode, keySet, putAll, remove, size, toString, values |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
clear, containsValue, equals, hashCode, keySet, putAll, remove, size, values |
| Field Detail |
|---|
private static final long serialVersionUID
private boolean fromStart
private boolean toEnd
private K fromKey
private K toKey
private transient Set<Map.Entry<K,V>> entrySet
| Constructor Detail |
|---|
ExtensibleTreeMap.SubMap(K fromKey,
K toKey)
ExtensibleTreeMap.SubMap(K key,
boolean headMap)
ExtensibleTreeMap.SubMap(boolean fromStart,
K fromKey,
boolean toEnd,
K toKey)
| Method Detail |
|---|
public boolean isEmpty()
AbstractMapThis implementation returns size() == 0.
isEmpty in interface Map<K,V>isEmpty in class AbstractMap<K,V>public boolean containsKey(Object key)
AbstractMapThis implementation iterates over entrySet() searching for an entry with the specified key. If such an entry is found, true is returned. If the iteration terminates without finding such an entry, false is returned. Note that this implementation requires linear time in the size of the map; many implementations will override this method.
containsKey in interface Map<K,V>containsKey in class AbstractMap<K,V>key - key whose presence in this map is to be tested.
public V get(Object key)
AbstractMapThis implementation iterates over entrySet() searching for an entry with the specified key. If such an entry is found, the entry's value is returned. If the iteration terminates without finding such an entry, null is returned. Note that this implementation requires linear time in the size of the map; many implementations will override this method.
get in interface Map<K,V>get in class AbstractMap<K,V>key - key whose associated value is to be returned.
AbstractMap.containsKey(Object)
public V put(K key,
V value)
AbstractMapThis implementation always throws an UnsupportedOperationException.
put in interface Map<K,V>put in class AbstractMap<K,V>key - key with which the specified value is to be associated.value - value to be associated with the specified key.
public Comparator<? super K> comparator()
comparator in interface SortedMap<K,V>public K firstKey()
firstKey in interface SortedMap<K,V>public K lastKey()
lastKey in interface SortedMap<K,V>public Set<Map.Entry<K,V>> entrySet()
AbstractMap
entrySet in interface Map<K,V>entrySet in class AbstractMap<K,V>
public SortedMap<K,V> subMap(K fromKey,
K toKey)
subMap in interface SortedMap<K,V>public SortedMap<K,V> headMap(K toKey)
headMap in interface SortedMap<K,V>public SortedMap<K,V> tailMap(K fromKey)
tailMap in interface SortedMap<K,V>private boolean inRange(K key)
private boolean inRange2(K key)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||