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.
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, groupByUniqueKey, indexOf, partition, partitionWith, reject, reject, rejectWith, select, select, selectInstancesOf, selectWith, tap, toImmutable, toStack, withAllKeyValueArguments, withAllKeyValues, withKeyValue, withoutAllKeys, withoutKey, zip, zipWithIndexaggregateBy, collect, countBy, countByEach, countByWith, detect, detectOptional, flipUniqueValues, getIfAbsentPut, getIfAbsentPut, getIfAbsentPutWith, getIfAbsentPutWithKey, keysView, keyValuesView, sumByDouble, sumByFloat, sumByInt, sumByLong, updateValue, updateValueWith, valuesViewallSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, asLazy, chunk, contains, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, forEachKey, forEachValue, forEachWith, forEachWithIndex, getFirst, getIfAbsent, getIfAbsentValue, getIfAbsentWith, getLast, getOnly, getOrDefault, ifPresentApply, noneSatisfy, noneSatisfyWith, toArray, toArrayappendString, appendString, collect, collectIf, collectWith, containsAll, containsAllArguments, containsAllIterable, count, countWith, flatCollect, forEach, groupBy, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, into, max, max, maxBy, min, min, minBy, reject, rejectWith, select, selectWith, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toBag, toBiMap, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, zip, zipWithIndexcollect, collectWithIndex, flatCollectWith, getIfAbsentPutWith, withMap, withMapIterableadd, aggregateBy, aggregateBy, aggregateInPlaceBy, countBy, countByEach, countByWith, flipUniqueValues, getIfAbsentPut, getIfAbsentPut, getIfAbsentPutWithKey, getOrDefault, putAllMapIterable, putPair, removeAllKeys, removeIf, sumByDouble, sumByFloat, sumByInt, sumByLong, updateValue, updateValueWithdetect, detectOptional, forEachKey, forEachValue, getIfAbsent, getIfAbsentValue, getIfAbsentWith, ifPresentApply, injectIntoKeyValue, keysView, keyValuesView, parallelStream, spliterator, stream, valuesViewreverseForEach, reverseForEachWithIndexcollectWithIndex, forEachWithIndex, getFirst, getFirstOptional, getLast, getLastOptional, max, min, rejectWithIndex, selectWithIndex, zip, zipWithIndexaggregateBy, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, count, countBy, countByEach, countByWith, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, flatCollect, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, flatCollectWith, forEach, getAny, getOnly, groupBy, groupByAndCollect, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, into, makeString, makeString, makeString, makeString, max, maxBy, maxByOptional, maxOptional, maxOptional, min, minBy, minByOptional, minOptional, minOptional, noneSatisfy, noneSatisfyWith, notEmpty, reduce, reduceInPlace, reduceInPlace, reject, rejectWith, select, selectWith, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toBiMap, toImmutableBag, toImmutableBiMap, toImmutableList, toImmutableMap, toImmutableSet, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedListBy, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetByforEach, forEachWithcompute, computeIfAbsent, computeIfPresent, forEach, merge, putIfAbsent, remove, replace, replace, replaceAllpublic static <K,V> MutableSortedMap<K,V> adapt(SortedMap<K,V> map)
public void forEachKeyValue(Procedure2<? super K,? super V> procedure)
forEachKeyValue in interface MapIterable<K,V>@Deprecated public MutableSortedMap<K,V> newEmpty()
TreeSortedMap.newEmpty() instead (inlineable)newEmpty in interface MutableMapIterable<K,V>newEmpty in interface MutableSortedMap<K,V>public boolean containsKey(Object key)
containsKey in interface Map<K,V>containsKey in interface MapIterable<K,V>public boolean containsValue(Object value)
containsValue in interface Map<K,V>containsValue in interface MapIterable<K,V>public Comparator<? super K> comparator()
comparator in interface SortedMap<K,V>comparator in interface SortedMapIterable<K,V>public int size()
public boolean isEmpty()
isEmpty in interface Map<K,V>isEmpty in interface RichIterable<V>isEmpty in class AbstractRichIterable<V>public MutableCollection<V> values()
public MutableSet<Map.Entry<K,V>> entrySet()
public MutableSet<K> keySet()
public MutableSortedMap<K,V> headMap(K toKey)
public MutableSortedMap<K,V> tailMap(K fromKey)
public MutableSortedMap<K,V> subMap(K fromKey, K toKey)
public MutableSortedMap<K,V> with(Pair<K,V>... pairs)
with in interface MutableSortedMap<K,V>public String toString()
AbstractRichIterable
Assert.assertEquals("[]", Lists.mutable.empty().toString());
Assert.assertEquals("[1]", Lists.mutable.with(1).toString());
Assert.assertEquals("[1, 2, 3]", Lists.mutable.with(1, 2, 3).toString());
toString in interface MapIterable<K,V>toString in interface RichIterable<V>toString in class AbstractRichIterable<V>AbstractCollection.toString()public MutableSortedMap<K,V> clone()
clone in interface MutableSortedMap<K,V>clone in class AbstractMutableSortedMap<K,V>public boolean equals(Object o)
public int hashCode()
public MutableSortedMap<K,V> toReversed()
toReversed in interface MutableSortedMap<K,V>toReversed in interface SortedMapIterable<K,V>toReversed in interface ReversibleIterable<V>public MutableSortedMap<K,V> take(int count)
take in interface MutableSortedMap<K,V>take in interface SortedMapIterable<K,V>take in interface ReversibleIterable<V>public MutableSortedMap<K,V> takeWhile(Predicate<? super V> predicate)
takeWhile in interface MutableSortedMap<K,V>takeWhile in interface SortedMapIterable<K,V>takeWhile in interface OrderedIterable<V>takeWhile in interface ReversibleIterable<V>public MutableSortedMap<K,V> drop(int count)
drop in interface MutableSortedMap<K,V>drop in interface SortedMapIterable<K,V>drop in interface ReversibleIterable<V>public MutableSortedMap<K,V> dropWhile(Predicate<? super V> predicate)
dropWhile in interface MutableSortedMap<K,V>dropWhile in interface SortedMapIterable<K,V>dropWhile in interface OrderedIterable<V>dropWhile in interface ReversibleIterable<V>public PartitionMutableList<V> partitionWhile(Predicate<? super V> predicate)
partitionWhile in interface MutableSortedMap<K,V>partitionWhile in interface SortedMapIterable<K,V>partitionWhile in interface OrderedIterable<V>partitionWhile in interface ReversibleIterable<V>public MutableList<V> distinct()
distinct in interface MutableSortedMap<K,V>distinct in interface SortedMapIterable<K,V>distinct in interface OrderedIterable<V>distinct in interface ReversibleIterable<V>Copyright © 2004–2022. All rights reserved.