@GwtCompatible(emulated=true) final class EmptyImmutableSortedMap<K,V> extends ImmutableSortedMap<K,V>
ImmutableSortedMap.Builder<K,V>| Modifier and Type | Field and Description |
|---|---|
private ImmutableSortedSet<K> |
keySet |
| Constructor and Description |
|---|
EmptyImmutableSortedMap(java.util.Comparator<? super K> comparator) |
EmptyImmutableSortedMap(java.util.Comparator<? super K> comparator,
ImmutableSortedMap<K,V> descendingMap) |
| Modifier and Type | Method and Description |
|---|---|
ImmutableSetMultimap<K,V> |
asMultimap()
Returns a multimap view of the map.
|
(package private) ImmutableSortedMap<K,V> |
createDescendingMap() |
(package private) ImmutableSet<java.util.Map.Entry<K,V>> |
createEntrySet() |
ImmutableSet<java.util.Map.Entry<K,V>> |
entrySet()
Returns an immutable set of the mappings in this map, sorted by the key
ordering.
|
V |
get(java.lang.Object key) |
ImmutableSortedMap<K,V> |
headMap(K toKey,
boolean inclusive)
This method returns a
ImmutableSortedMap, consisting of the entries
whose keys are less than (or equal to, if inclusive) toKey. |
boolean |
isEmpty() |
(package private) boolean |
isPartialView() |
ImmutableSortedSet<K> |
keySet()
Returns an immutable sorted set of the keys in this map.
|
int |
size() |
ImmutableSortedMap<K,V> |
tailMap(K fromKey,
boolean inclusive)
This method returns a
ImmutableSortedMap, consisting of the entries
whose keys are greater than (or equal to, if inclusive)
fromKey. |
java.lang.String |
toString() |
ImmutableCollection<V> |
values()
Returns an immutable collection of the values in this map, sorted by the
ordering of the corresponding keys.
|
ceilingEntry, ceilingKey, comparator, containsValue, copyOf, copyOf, copyOfSorted, descendingKeySet, descendingMap, emptyMap, firstEntry, firstKey, floorEntry, floorKey, from, fromEntries, fromSortedEntries, headMap, higherEntry, higherKey, lastEntry, lastKey, lowerEntry, lowerKey, naturalOrder, navigableKeySet, of, of, of, of, of, of, orderedBy, pollFirstEntry, pollLastEntry, reverseOrder, subMap, subMap, tailMap, writeReplacebuildercheckNoConflict, clear, containsKey, createKeySet, entryOf, equals, hashCode, put, putAll, removeprivate final transient ImmutableSortedSet<K> keySet
EmptyImmutableSortedMap(java.util.Comparator<? super K> comparator)
EmptyImmutableSortedMap(java.util.Comparator<? super K> comparator, ImmutableSortedMap<K,V> descendingMap)
public V get(@Nullable java.lang.Object key)
public ImmutableSortedSet<K> keySet()
ImmutableSortedMappublic int size()
public boolean isEmpty()
public ImmutableCollection<V> values()
ImmutableSortedMappublic java.lang.String toString()
toString in class ImmutableMap<K,V>boolean isPartialView()
isPartialView in class ImmutableSortedMap<K,V>public ImmutableSet<java.util.Map.Entry<K,V>> entrySet()
ImmutableSortedMapImmutableSet<java.util.Map.Entry<K,V>> createEntrySet()
createEntrySet in class ImmutableMap<K,V>public ImmutableSetMultimap<K,V> asMultimap()
ImmutableMapasMultimap in class ImmutableMap<K,V>public ImmutableSortedMap<K,V> headMap(K toKey, boolean inclusive)
ImmutableSortedMapImmutableSortedMap, consisting of the entries
whose keys are less than (or equal to, if inclusive) toKey.
The SortedMap.headMap(K) documentation states that a submap of a
submap throws an IllegalArgumentException if passed a toKey
greater than an earlier toKey. However, this method doesn't throw
an exception in that situation, but instead keeps the original toKey.
public ImmutableSortedMap<K,V> tailMap(K fromKey, boolean inclusive)
ImmutableSortedMapImmutableSortedMap, consisting of the entries
whose keys are greater than (or equal to, if inclusive)
fromKey.
The SortedMap.tailMap(K) documentation states that a submap of a
submap throws an IllegalArgumentException if passed a fromKey less than an earlier fromKey. However, this method doesn't
throw an exception in that situation, but instead keeps the original fromKey.
ImmutableSortedMap<K,V> createDescendingMap()
createDescendingMap in class ImmutableSortedMap<K,V>