@Immutable public class ImmutableTreeMap<K,V> extends AbstractImmutableSortedMap<K,V> implements Serializable
ImmutableSortedMap,
Serialized Form| Constructor and Description |
|---|
ImmutableTreeMap(SortedMap<K,V> sortedMap) |
| Modifier and Type | Method and Description |
|---|---|
Comparator<? super K> |
comparator() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
org.eclipse.collections.api.map.sorted.ImmutableSortedMap<K,V> |
drop(int count) |
Set<Map.Entry<K,V>> |
entrySet() |
boolean |
equals(Object object) |
K |
firstKey() |
org.eclipse.collections.api.map.ImmutableMap<V,K> |
flipUniqueValues() |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.Procedure2<? super K,? super V> procedure) |
V |
get(Object key) |
int |
hashCode() |
Set<K> |
keySet() |
org.eclipse.collections.api.RichIterable<K> |
keysView() |
org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.Pair<K,V>> |
keyValuesView() |
K |
lastKey() |
static <K,V> org.eclipse.collections.api.map.sorted.ImmutableSortedMap<K,V> |
newMap(SortedMap<K,V> sortedMap) |
int |
size() |
org.eclipse.collections.api.map.sorted.ImmutableSortedMap<K,V> |
take(int count) |
String |
toString()
Returns a string representation of this collection.
|
Collection<V> |
values() |
org.eclipse.collections.api.RichIterable<V> |
valuesView() |
aggregateBy, aggregateInPlaceBy, asReversed, castToMap, castToSortedMap, clear, collect, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectValues, collectWith, corresponds, detect, detectIndex, detectLastIndex, distinct, dropWhile, flatCollect, flip, forEach, forEachWithIndex, groupBy, groupByEach, groupByUniqueKey, headMap, indexOf, iterator, newWithAllKeyValueArguments, newWithAllKeyValues, newWithKeyValue, newWithoutAllKeys, newWithoutKey, partition, partitionWhile, partitionWith, put, putAll, reject, reject, rejectWith, remove, reverseForEach, select, select, selectInstancesOf, selectWith, subMap, tailMap, takeWhile, tap, toImmutable, toReversed, toSortedMap, toStack, zip, zipWithIndexallSatisfy, 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, zipWithIndexforEachWithIndex, 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, spliteratorforEachKey, forEachValue, getIfAbsent, getIfAbsentValue, getIfAbsentWith, ifPresentApplycompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, isEmpty, merge, putIfAbsent, remove, replace, replace, replaceAllpublic static <K,V> org.eclipse.collections.api.map.sorted.ImmutableSortedMap<K,V> newMap(SortedMap<K,V> sortedMap)
public boolean equals(Object object)
public int hashCode()
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 int size()
public boolean containsKey(Object key)
public boolean containsValue(Object value)
public void forEachKeyValue(org.eclipse.collections.api.block.procedure.Procedure2<? super K,? super V> procedure)
public org.eclipse.collections.api.RichIterable<K> keysView()
public org.eclipse.collections.api.RichIterable<V> valuesView()
public org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.Pair<K,V>> keyValuesView()
public Comparator<? super K> comparator()
public Collection<V> values()
Copyright © 2004–2018. All rights reserved.