public class TreeSortedMap<K,V> extends AbstractMutableSortedMap<K,V> implements Externalizable
| Constructor and Description |
|---|
TreeSortedMap() |
TreeSortedMap(Comparator<? super K> comparator) |
TreeSortedMap(Comparator<? super K> comparator,
Map<? extends K,? extends V> map) |
TreeSortedMap(Map<? extends K,? extends V> map) |
TreeSortedMap(org.eclipse.collections.api.tuple.Pair<K,V>... pairs) |
TreeSortedMap(SortedMap<K,? extends V> map) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
TreeSortedMap<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> procedure2) |
V |
get(Object key) |
int |
hashCode() |
org.eclipse.collections.api.map.sorted.MutableSortedMap<K,V> |
headMap(K toKey) |
org.eclipse.collections.api.set.MutableSet<K> |
keySet() |
K |
lastKey() |
org.eclipse.collections.api.map.sorted.MutableSortedMap<K,V> |
newEmpty() |
static <K,V> TreeSortedMap<K,V> |
newMap() |
static <K,V> TreeSortedMap<K,V> |
newMap(Comparator<? super K> comparator) |
static <K,V> TreeSortedMap<K,V> |
newMap(Comparator<? super K> comparator,
Map<? extends K,? extends V> map) |
static <K,V> TreeSortedMap<K,V> |
newMap(Map<? extends K,? extends V> map) |
static <K,V> TreeSortedMap<K,V> |
newMapWith(Comparator<? super K> comparator,
K key,
V value) |
static <K,V> TreeSortedMap<K,V> |
newMapWith(Comparator<? super K> comparator,
K key1,
V value1,
K key2,
V value2) |
static <K,V> TreeSortedMap<K,V> |
newMapWith(Comparator<? super K> comparator,
K key1,
V value1,
K key2,
V value2,
K key3,
V value3) |
static <K,V> TreeSortedMap<K,V> |
newMapWith(Comparator<? super K> comparator,
K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4) |
static <K,V> TreeSortedMap<K,V> |
newMapWith(Comparator<? super K> comparator,
org.eclipse.collections.api.tuple.Pair<K,V>... pairs) |
static <K,V> TreeSortedMap<K,V> |
newMapWith(K key,
V value) |
static <K,V> TreeSortedMap<K,V> |
newMapWith(K key1,
V value1,
K key2,
V value2) |
static <K,V> TreeSortedMap<K,V> |
newMapWith(K key1,
V value1,
K key2,
V value2,
K key3,
V value3) |
static <K,V> TreeSortedMap<K,V> |
newMapWith(K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4) |
static <K,V> TreeSortedMap<K,V> |
newMapWith(org.eclipse.collections.api.tuple.Pair<K,V>... pairs) |
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) |
void |
readExternal(ObjectInput in) |
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() |
TreeSortedMap<K,V> |
with(K key,
V value) |
TreeSortedMap<K,V> |
with(K key1,
V value1,
K key2,
V value2) |
TreeSortedMap<K,V> |
with(K key1,
V value1,
K key2,
V value2,
K key3,
V value3) |
TreeSortedMap<K,V> |
with(K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4) |
TreeSortedMap<K,V> |
with(org.eclipse.collections.api.tuple.Pair<K,V>... pairs) |
void |
writeExternal(ObjectOutput out) |
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, iterator, 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, isEmpty, 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, isEmpty, 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, iterator, spliteratorcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, isEmpty, merge, putIfAbsent, remove, replace, replace, replaceAllpublic TreeSortedMap()
public TreeSortedMap(Comparator<? super K> comparator)
public TreeSortedMap(Comparator<? super K> comparator, Map<? extends K,? extends V> map)
public static <K,V> TreeSortedMap<K,V> newMap()
public static <K,V> TreeSortedMap<K,V> newMap(Comparator<? super K> comparator)
public static <K,V> TreeSortedMap<K,V> newMap(Map<? extends K,? extends V> map)
public static <K,V> TreeSortedMap<K,V> newMap(Comparator<? super K> comparator, Map<? extends K,? extends V> map)
public static <K,V> TreeSortedMap<K,V> newMapWith(org.eclipse.collections.api.tuple.Pair<K,V>... pairs)
public static <K,V> TreeSortedMap<K,V> newMapWith(Comparator<? super K> comparator, org.eclipse.collections.api.tuple.Pair<K,V>... pairs)
public static <K,V> TreeSortedMap<K,V> newMapWith(K key, V value)
public static <K,V> TreeSortedMap<K,V> newMapWith(K key1, V value1, K key2, V value2)
public static <K,V> TreeSortedMap<K,V> newMapWith(K key1, V value1, K key2, V value2, K key3, V value3)
public static <K,V> TreeSortedMap<K,V> newMapWith(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)
public static <K,V> TreeSortedMap<K,V> newMapWith(Comparator<? super K> comparator, K key, V value)
public static <K,V> TreeSortedMap<K,V> newMapWith(Comparator<? super K> comparator, K key1, V value1, K key2, V value2)
public static <K,V> TreeSortedMap<K,V> newMapWith(Comparator<? super K> comparator, K key1, V value1, K key2, V value2, K key3, V value3)
public static <K,V> TreeSortedMap<K,V> newMapWith(Comparator<? super K> comparator, K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)
public TreeSortedMap<K,V> with(K key, V value)
public TreeSortedMap<K,V> with(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)
public TreeSortedMap<K,V> with(org.eclipse.collections.api.tuple.Pair<K,V>... pairs)
public int size()
public TreeSortedMap<K,V> clone()
public boolean equals(Object o)
public int hashCode()
public void forEachKeyValue(org.eclipse.collections.api.block.procedure.Procedure2<? super K,? super V> procedure2)
public org.eclipse.collections.api.set.MutableSet<K> keySet()
public org.eclipse.collections.api.collection.MutableCollection<V> values()
public Comparator<? super K> comparator()
public boolean containsKey(Object key)
public org.eclipse.collections.api.map.sorted.MutableSortedMap<K,V> subMap(K fromKey, K toKey)
public boolean containsValue(Object value)
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>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 void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © 2004–2017. All rights reserved.