public class SortedArrayMap<K,V> extends AbstractNavigableMap<K,V> implements Serializable, Cloneable
AbstractNavigableMap.BaseIteratorImpl<T>, AbstractNavigableMap.DescendingKeyIteratorImpl, AbstractNavigableMap.EntryIteratorImpl, AbstractNavigableMap.EntrySet, AbstractNavigableMap.KeyIteratorImpl, AbstractNavigableMap.KeySet, AbstractNavigableMap.SubMap, AbstractNavigableMap.ValueCollection, AbstractNavigableMap.ValueIteratorImplcomparator, modCount| Constructor and Description | 
|---|
| SortedArrayMap() | 
| SortedArrayMap(Comparator<? super K> comparator) | 
| SortedArrayMap(int initialCapacity) | 
| SortedArrayMap(int initialCapacity,
              Comparator<? super K> comparator) | 
| SortedArrayMap(Map<? extends K,? extends V> map) | 
| SortedArrayMap(Map<? extends K,? extends V> map,
              Comparator<? super K> comparator) | 
| SortedArrayMap(SortedMap<K,? extends V> map) | 
| Modifier and Type | Method and Description | 
|---|---|
| Map.Entry<K,V> | ceilingEntry(K key) | 
| Map.Entry<K,V> | firstEntry() | 
| Map.Entry<K,V> | floorEntry(K key) | 
| protected Map.Entry<K,V> | getEntry(Object key)Finds an entry for a specified key. | 
| Map.Entry<K,V> | higherEntry(K key) | 
| Map.Entry<K,V> | lastEntry() | 
| Map.Entry<K,V> | lowerEntry(K key) | 
| V | put(K key,
   V value) | 
| void | putAll(Map<? extends K,? extends V> map) | 
| protected Map.Entry<K,V> | removeEntry(Object key)Removes a mapping for the specified key and returns the removed entry. | 
| int | size() | 
| void | trimToSize()Shrinks the internal array so that it is exactly the necessary size. | 
ceilingKey, clear, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, equals, firstKey, floorKey, get, getModCount, hashCode, headMap, headMap, higherKey, isEmpty, keySet, lastKey, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, remove, subMap, subMap, tailMap, tailMap, toString, valuesclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic SortedArrayMap()
public SortedArrayMap(int initialCapacity)
public SortedArrayMap(Comparator<? super K> comparator)
public SortedArrayMap(int initialCapacity,
                      Comparator<? super K> comparator)
public SortedArrayMap(Map<? extends K,? extends V> map, Comparator<? super K> comparator)
public void trimToSize()
public void putAll(Map<? extends K,? extends V> map)
AbstractNavigableMapThis default implementation simply loops over all entries in the specified map and calls
 Map.put(Object, Object) for each one.
public Map.Entry<K,V> lowerEntry(K key)
lowerEntry in interface NavigableMap<K,V>public Map.Entry<K,V> floorEntry(K key)
AbstractNavigableMapThis default implementation uses AbstractNavigableMap.getEntry(Object). If no such entry is found then
 it calls NavigableMap.lowerEntry(Object) and returns that entry.
floorEntry in interface NavigableMap<K,V>floorEntry in class AbstractNavigableMap<K,V>public Map.Entry<K,V> ceilingEntry(K key)
AbstractNavigableMapThis default implementation uses AbstractNavigableMap.getEntry(Object). If no such entry is found then
 it calls NavigableMap.higherEntry(Object) and returns that entry.
ceilingEntry in interface NavigableMap<K,V>ceilingEntry in class AbstractNavigableMap<K,V>public Map.Entry<K,V> higherEntry(K key)
higherEntry in interface NavigableMap<K,V>public Map.Entry<K,V> firstEntry()
firstEntry in interface NavigableMap<K,V>protected Map.Entry<K,V> getEntry(Object key)
AbstractNavigableMapnull
 is returned.getEntry in class AbstractNavigableMap<K,V>key - the keynull if one does not existprotected Map.Entry<K,V> removeEntry(Object key)
AbstractNavigableMapnull is returned.removeEntry in class AbstractNavigableMap<K,V>key - the keynull if no such entry exists