public class SortedMapAdapter<K,V> extends AbstractMutableSortedMap<K,V> implements Serializable
To create a new wrapper around an existing SortedMap instance, use the adapt(SortedMap) factory method.
| Modifier and Type | Method and Description |
|---|---|
static <K,V> org.eclipse.collections.api.map.sorted.MutableSortedMap<K,V> |
adapt(SortedMap<K,V> map) |
void |
clear() |
org.eclipse.collections.api.map.sorted.MutableSortedMap<K,V> |
clone() |
Comparator<? super K> |
comparator() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
org.eclipse.collections.api.list.MutableList<V> |
distinct() |
org.eclipse.collections.api.map.sorted.MutableSortedMap<K,V> |
drop(int count) |
org.eclipse.collections.api.map.sorted.MutableSortedMap<K,V> |
dropWhile(org.eclipse.collections.api.block.predicate.Predicate<? super V> predicate) |
org.eclipse.collections.api.set.MutableSet<Map.Entry<K,V>> |
entrySet() |
boolean |
equals(Object o) |
K |
firstKey() |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.Procedure2<? super K,? super V> procedure) |
V |
get(Object key) |
int |
hashCode() |
org.eclipse.collections.api.map.sorted.MutableSortedMap<K,V> |
headMap(K toKey) |
boolean |
isEmpty() |
Iterator<V> |
iterator() |
org.eclipse.collections.api.set.MutableSet<K> |
keySet() |
K |
lastKey() |
org.eclipse.collections.api.map.sorted.MutableSortedMap<K,V> |
newEmpty()
Deprecated.
use
TreeSortedMap.newEmpty() instead (inlineable) |
org.eclipse.collections.api.partition.list.PartitionMutableList<V> |
partitionWhile(org.eclipse.collections.api.block.predicate.Predicate<? super V> predicate) |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> map) |
V |
remove(Object key) |
V |
removeKey(K key) |
int |
size() |
org.eclipse.collections.api.map.sorted.MutableSortedMap<K,V> |
subMap(K fromKey,
K toKey) |
org.eclipse.collections.api.map.sorted.MutableSortedMap<K,V> |
tailMap(K fromKey) |
org.eclipse.collections.api.map.sorted.MutableSortedMap<K,V> |
take(int count) |
org.eclipse.collections.api.map.sorted.MutableSortedMap<K,V> |
takeWhile(org.eclipse.collections.api.block.predicate.Predicate<? super V> predicate) |
org.eclipse.collections.api.map.sorted.MutableSortedMap<K,V> |
toReversed() |
String |
toString()
Returns a string representation of this collection.
|
org.eclipse.collections.api.collection.MutableCollection<V> |
values() |
org.eclipse.collections.api.map.sorted.MutableSortedMap<K,V> |
with(org.eclipse.collections.api.tuple.Pair<K,V>... pairs) |
asReversed, asSynchronized, asUnmodifiable, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectKeysAndValues, collectLong, collectShort, collectValues, collectWith, corresponds, detectIndex, detectLastIndex, flatCollect, flip, forEach, forEachWithIndex, groupBy, groupByEach, indexOf, partition, partitionWith, reject, reject, rejectWith, reverseForEach, select, select, selectInstancesOf, selectWith, tap, toImmutable, toStack, withAllKeyValueArguments, withAllKeyValues, withKeyValue, withoutAllKeys, withoutKey, zip, zipWithIndexadd, aggregateBy, aggregateInPlaceBy, collect, detect, flipUniqueValues, getIfAbsentPut, getIfAbsentPut, getIfAbsentPutWith, getIfAbsentPutWithKey, groupByUniqueKey, keysView, keyValuesView, updateValue, updateValueWith, valuesViewallSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, asLazy, chunk, contains, detect, detectIfNone, detectWith, detectWithIfNone, each, forEachKey, forEachValue, forEachWith, forEachWithIndex, getFirst, getIfAbsent, getIfAbsentValue, getIfAbsentWith, getLast, ifPresentApply, noneSatisfy, noneSatisfyWith, toArray, toArrayappendString, appendString, appendString, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, containsAll, containsAllArguments, containsAllIterable, count, countWith, flatCollect, forEach, groupBy, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, makeString, makeString, makeString, max, max, maxBy, min, min, minBy, notEmpty, reject, rejectWith, select, selectWith, sumByDouble, sumByFloat, sumByInt, sumByLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toBag, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy, zip, zipWithIndexaggregateBy, aggregateInPlaceBy, collect, getIfAbsentPutWith, groupByUniqueKeyadd, flipUniqueValues, getIfAbsentPut, getIfAbsentPut, getIfAbsentPutWithKey, updateValue, updateValueWithdetect, forEachKey, forEachValue, getIfAbsent, getIfAbsentValue, getIfAbsentWith, ifPresentApply, keysView, keyValuesView, valuesViewforEachWithIndex, getFirst, getLast, max, min, zip, zipWithIndexallSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, count, countWith, detect, detectIfNone, detectWith, detectWithIfNone, each, flatCollect, groupBy, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, makeString, makeString, makeString, max, maxBy, min, minBy, noneSatisfy, noneSatisfyWith, notEmpty, reject, rejectWith, select, selectWith, sumByDouble, sumByFloat, sumByInt, sumByLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetByforEach, spliteratorcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic static <K,V> org.eclipse.collections.api.map.sorted.MutableSortedMap<K,V> adapt(SortedMap<K,V> map)
public void forEachKeyValue(org.eclipse.collections.api.block.procedure.Procedure2<? super K,? super V> procedure)
@Deprecated public org.eclipse.collections.api.map.sorted.MutableSortedMap<K,V> newEmpty()
TreeSortedMap.newEmpty() instead (inlineable)public boolean containsKey(Object key)
public boolean containsValue(Object value)
public Comparator<? super K> comparator()
public int size()
public boolean isEmpty()
public org.eclipse.collections.api.collection.MutableCollection<V> values()
public org.eclipse.collections.api.set.MutableSet<K> keySet()
public org.eclipse.collections.api.map.sorted.MutableSortedMap<K,V> subMap(K fromKey, K toKey)
public org.eclipse.collections.api.map.sorted.MutableSortedMap<K,V> with(org.eclipse.collections.api.tuple.Pair<K,V>... pairs)
public String toString()
AbstractRichIterable
This implementation creates an empty string buffer, appends a left square bracket, and iterates over the collection appending the string representation of each element in turn. After appending each element except the last, the string ", " is appended. Finally a right bracket is appended. A string is obtained from the string buffer, and returned.
public boolean equals(Object o)
public int hashCode()
public org.eclipse.collections.api.map.sorted.MutableSortedMap<K,V> takeWhile(org.eclipse.collections.api.block.predicate.Predicate<? super V> predicate)
takeWhile in interface org.eclipse.collections.api.map.sorted.MutableSortedMap<K,V>takeWhile in interface org.eclipse.collections.api.map.sorted.SortedMapIterable<K,V>takeWhile in interface org.eclipse.collections.api.ordered.OrderedIterable<V>takeWhile in interface org.eclipse.collections.api.ordered.ReversibleIterable<V>public org.eclipse.collections.api.map.sorted.MutableSortedMap<K,V> dropWhile(org.eclipse.collections.api.block.predicate.Predicate<? super V> predicate)
dropWhile in interface org.eclipse.collections.api.map.sorted.MutableSortedMap<K,V>dropWhile in interface org.eclipse.collections.api.map.sorted.SortedMapIterable<K,V>dropWhile in interface org.eclipse.collections.api.ordered.OrderedIterable<V>dropWhile in interface org.eclipse.collections.api.ordered.ReversibleIterable<V>public org.eclipse.collections.api.partition.list.PartitionMutableList<V> partitionWhile(org.eclipse.collections.api.block.predicate.Predicate<? super V> predicate)
partitionWhile in interface org.eclipse.collections.api.map.sorted.MutableSortedMap<K,V>partitionWhile in interface org.eclipse.collections.api.map.sorted.SortedMapIterable<K,V>partitionWhile in interface org.eclipse.collections.api.ordered.OrderedIterable<V>partitionWhile in interface org.eclipse.collections.api.ordered.ReversibleIterable<V>public org.eclipse.collections.api.list.MutableList<V> distinct()
distinct in interface org.eclipse.collections.api.map.sorted.MutableSortedMap<K,V>distinct in interface org.eclipse.collections.api.map.sorted.SortedMapIterable<K,V>distinct in interface org.eclipse.collections.api.ordered.OrderedIterable<V>distinct in interface org.eclipse.collections.api.ordered.ReversibleIterable<V>Copyright © 2004–2017. All rights reserved.