| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Comparator | |
| private final PresortedMap. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Implements java. |
| public Comparator | comparator()
Implements java. null if this map uses the natural ordering of its keys.
|
| public boolean | containsKey(Object
key whose presence in this map is to be tested key)Implements java. true if this map contains a mapping for the specified
key.
|
| public boolean | containsValue(Object
value whose presence in this map is to be tested value)Implements java. true if this map maps one or more keys to the
specified value.
|
| public Set | entrySet()
Implements java. Set view of the mappings contained in this map.
|
| public Object | firstKey()
Implements java. |
| public Object | get(Object
the key whose associated value is to be returned key)Implements java. null if this map contains no mapping for the key.
|
| public SortedMap | headMap(Object
high endpoint (exclusive) of the keys in the returned map toKey)Implements java. toKey.
|
| public boolean | |
| public Set | keySet()
Implements java. Set view of the keys contained in this map.
|
| public Object | lastKey()
Implements java. |
| public Object | put(final Object
key with which the specified value is to be associated key, final Object value to be associated with the specified key value)Implements java. |
| public void | putAll(Map<K, V>
mappings to be stored in this map m)Implements java. |
| public Object | remove(Object
key whose mapping is to be removed from the map key)Implements java. |
| public int | |
| public SortedMap | subMap(Object
low endpoint (inclusive) of the keys in the returned map fromKey, Object high endpoint (exclusive) of the keys in the returned map toKey)Implements java. fromKey, inclusive, to toKey, exclusive.
|
| public SortedMap | tailMap(Object
low endpoint (inclusive) of the keys in the returned map fromKey)Implements java. fromKey.
|
| public Collection | values()
Implements java. Collection view of the values contained in this map.
|
| comparator | back to summary |
|---|---|
| private final Comparator<T> comparator | |
| set | back to summary |
|---|---|
| private final PresortedMap. | |
| PresortedMap | back to summary |
|---|---|
| public PresortedMap() | |
| PresortedMap | back to summary |
|---|---|
| public PresortedMap(Comparator<T> comparator) | |
| PresortedMap | back to summary |
|---|---|
| private PresortedMap(Comparator<T> comparator, PresortedMap. | |
| clear | back to summary |
|---|---|
| public void clear() Implements java. Doc from java. Removes all of the mappings from this map (optional operation). The map will be empty after this call returns. | |
| comparator | back to summary |
|---|---|
| public Comparator Implements java. Doc from java. Returns the comparator used to order the keys in this map, or
| |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(Object key) Implements java. Doc from java. Returns
| |
| containsValue | back to summary |
|---|---|
| public boolean containsValue(Object value) Implements java. Doc from java. Returns
| |
| entrySet | back to summary |
|---|---|
| public Set Implements java. Doc from java. Returns a
| |
| firstKey | back to summary |
|---|---|
| public Object firstKey() Implements java. Doc from java. Returns the first (lowest) key currently in this map.
| |
| get | back to summary |
|---|---|
| public Object get(Object key) Implements java. Doc from java. Returns the value to which the specified key is mapped,
or More formally, if this map contains a mapping from a key
If this map permits null values, then a return value of
| |
| headMap | back to summary |
|---|---|
| public SortedMap Implements java. Doc from java. Returns a view of the portion of this map whose keys are
strictly less than The returned map will throw an | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements java. Doc from java. Returns
| |
| keySet | back to summary |
|---|---|
| public Set Implements java. Doc from java. Returns a
| |
| lastKey | back to summary |
|---|---|
| public Object lastKey() Implements java. Doc from java. Returns the last (highest) key currently in this map.
| |
| put | back to summary |
|---|---|
| public Object put(final Object key, final Object value) Implements java. Doc from java. Associates the specified value with the specified key in this map
(optional operation). If the map previously contained a mapping for
the key, the old value is replaced by the specified value. (A map
| |
| putAll | back to summary |
|---|---|
| public void putAll(Map<K, V> m) Implements java. Doc from java. Copies all of the mappings from the specified map to this map
(optional operation). The effect of this call is equivalent to that
of calling
| |
| remove | back to summary |
|---|---|
| public Object remove(Object key) Implements java. Doc from java. Removes the mapping for a key from this map if it is present
(optional operation). More formally, if this map contains a mapping
from key Returns the value to which this map previously associated the key,
or If this map permits null values, then a return value of
The map will not contain a mapping for the specified key once the call returns. | |
| size | back to summary |
|---|---|
| public int size() Implements java. Doc from java. Returns the number of key-value mappings in this map. If the
map contains more than
| |
| subMap | back to summary |
|---|---|
| public SortedMap Implements java. Doc from java. Returns a view of the portion of this map whose keys range from
The returned map will throw an | |
| tailMap | back to summary |
|---|---|
| public SortedMap Implements java. Doc from java. Returns a view of the portion of this map whose keys are
greater than or equal to The returned map will throw an | |
| values | back to summary |
|---|---|
| public Collection Implements java. Doc from java. Returns a
| |
| Access | Constructor and Description |
|---|---|
| private |
| ArraySet | back to summary |
|---|---|
| private ArraySet() | |
| Modifier and Type | Field and Description |
|---|---|
| private Map. | |
| private final ArrayList |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | compare(Object
the first object to be compared. object1, Object the second object to be compared. object2)Implements java. |
| array | back to summary |
|---|---|
| private Map. | |
| list | back to summary |
|---|---|
| private final ArrayList<E> list | |
| ArraySetComparator | back to summary |
|---|---|
| pack-priv ArraySetComparator(ArrayList<E> list) | |
| compare | back to summary |
|---|---|
| public int compare(Object object1, Object object2) Implements java. Doc from java. Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
The implementor must ensure that
The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |