gate.util
Class RBTreeMap.SubMap
java.lang.Object
|
+--java.util.AbstractMap
|
+--gate.util.RBTreeMap.SubMap
- All Implemented Interfaces:
- Map, Serializable, SortedMap
- Enclosing class:
- RBTreeMap
- private class RBTreeMap.SubMap
- extends AbstractMap
- implements SortedMap, Serializable
Methods inherited from class java.util.AbstractMap |
clear, clone, containsValue, equals, hashCode, keySet, putAll, remove, size, toString, values |
fromStart
private boolean fromStart
toEnd
private boolean toEnd
fromKey
private Object fromKey
toKey
private Object toKey
entrySet
private transient Set entrySet
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
RBTreeMap.SubMap
RBTreeMap.SubMap(Object fromKey,
Object toKey)
RBTreeMap.SubMap
RBTreeMap.SubMap(Object key,
boolean headMap)
RBTreeMap.SubMap
RBTreeMap.SubMap(boolean fromStart,
Object fromKey,
boolean toEnd,
Object toKey)
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface Map
- Overrides:
isEmpty
in class AbstractMap
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interface Map
- Overrides:
containsKey
in class AbstractMap
get
public Object get(Object key)
- Specified by:
get
in interface Map
- Overrides:
get
in class AbstractMap
put
public Object put(Object key,
Object value)
- Specified by:
put
in interface Map
- Overrides:
put
in class AbstractMap
comparator
public Comparator comparator()
- Specified by:
comparator
in interface SortedMap
firstKey
public Object firstKey()
- Specified by:
firstKey
in interface SortedMap
lastKey
public Object lastKey()
- Specified by:
lastKey
in interface SortedMap
entrySet
public Set entrySet()
- Specified by:
entrySet
in interface Map
- Specified by:
entrySet
in class AbstractMap
subMap
public SortedMap subMap(Object fromKey,
Object toKey)
- Specified by:
subMap
in interface SortedMap
headMap
public SortedMap headMap(Object toKey)
- Specified by:
headMap
in interface SortedMap
tailMap
public SortedMap tailMap(Object fromKey)
- Specified by:
tailMap
in interface SortedMap
inRange
private boolean inRange(Object key)
inRange2
private boolean inRange2(Object key)