public static class FunctionUtils.UnmodifiableSortedMap<K,V> extends Object implements UnmodSortedMap<K,V>, Serializable
FunctionUtils.unmodSortedMap(SortedMap)
.UnmodMap.AbstractUnmodMap<K,V>, UnmodMap.UnEntry<K,V>
UnmodIterable.AbstractUnmodIterable<T>
Modifier and Type | Method and Description |
---|---|
Comparator<? super K> |
comparator() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value)
Most maps are not designed for this - the default implementation has O(n) performance.
|
boolean |
equals(Object o) |
K |
firstKey() |
V |
get(Object key) |
int |
hashCode() |
boolean |
isEmpty() |
UnmodSortedIterator<UnmodMap.UnEntry<K,V>> |
iterator()
A one-time use, mutable, not-thread-safe way to get each value of the underling collection in
turn.
|
K |
lastKey() |
int |
size()
Returns the number of items in this iterable.
|
UnmodSortedMap<K,V> |
subMap(K fromKey,
K toKey) |
UnmodSortedMap<K,V> |
tailMap(K fromKey) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
entrySet, headMap, keySet, values
clear, compute, computeIfAbsent, computeIfPresent, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll
forEach, getOrDefault
castFromList, castFromSortedMap, castFromSortedSet, equal, equals
concat, drop, filter, flatMap, foldLeft, foldLeft, hash, hashCode, head, map, precat, take, takeWhile, toString
forEach, spliterator
toImList, toImMap, toImSet, toImSortedMap, toImSortedSet, toMutableList, toMutableMap, toMutableSet, toMutableSortedMap, toMutableSortedSet
public int size()
Sized
public boolean isEmpty()
UnmodMap
public boolean containsKey(Object key)
containsKey
in interface Map<K,V>
public boolean containsValue(Object value)
UnmodMap
containsValue
in interface Map<K,V>
containsValue
in interface UnmodMap<K,V>
public Comparator<? super K> comparator()
comparator
in interface SortedMap<K,V>
public UnmodSortedMap<K,V> subMap(K fromKey, K toKey)
UnmodSortedMap
public UnmodSortedMap<K,V> tailMap(K fromKey)
UnmodSortedMap
public UnmodSortedIterator<UnmodMap.UnEntry<K,V>> iterator()
UnmodIterable
iterator
in interface Iterable<UnmodMap.UnEntry<K,V>>
iterator
in interface UnmodIterable<UnmodMap.UnEntry<K,V>>
iterator
in interface UnmodSortedIterable<UnmodMap.UnEntry<K,V>>
public int hashCode()
public boolean equals(Object o)
Copyright © 2016. All rights reserved.