| Package | Description |
|---|---|
| org.eclipse.collections.api |
This package contains interfaces for Eclipse Collections API.
|
| org.eclipse.collections.api.bag.sorted |
This package contains interfaces for SortedBag API.
|
| org.eclipse.collections.api.factory.map.sorted |
This package contains factory API for creating instances of type
SortedMapIterable. |
| org.eclipse.collections.api.map.sorted |
This package contains mutable and immutable sorted map interfaces.
|
| Modifier and Type | Method and Description |
|---|---|
<NK,NV> MutableSortedMap<NK,NV> |
RichIterable.toSortedMap(Comparator<? super NK> comparator,
Function<? super T,? extends NK> keyFunction,
Function<? super T,? extends NV> valueFunction)
Converts the collection to a MutableSortedMap implementation using the specified key and value functions
sorted by the given comparator.
|
<NK,NV> MutableSortedMap<NK,NV> |
ParallelIterable.toSortedMap(Comparator<? super NK> comparator,
Function<? super T,? extends NK> keyFunction,
Function<? super T,? extends NV> valueFunction) |
<NK,NV> MutableSortedMap<NK,NV> |
RichIterable.toSortedMap(Function<? super T,? extends NK> keyFunction,
Function<? super T,? extends NV> valueFunction)
Converts the collection to a MutableSortedMap implementation using the specified key and value functions
sorted by the key elements' natural ordering.
|
<NK,NV> MutableSortedMap<NK,NV> |
ParallelIterable.toSortedMap(Function<? super T,? extends NK> keyFunction,
Function<? super T,? extends NV> valueFunction) |
default <KK extends Comparable<? super KK>,NK,NV> |
RichIterable.toSortedMapBy(Function<? super NK,KK> sortBy,
Function<? super T,? extends NK> keyFunction,
Function<? super T,? extends NV> valueFunction)
Converts the collection to a MutableSortedMap implementation using the specified key and value functions
and sorts it based on the natural order of the attribute returned by
sortBy function. |
| Modifier and Type | Method and Description |
|---|---|
MutableSortedMap<T,Integer> |
MutableSortedBag.toMapOfItemToCount() |
MutableSortedMap<T,Integer> |
ImmutableSortedBag.toMapOfItemToCount() |
| Modifier and Type | Method and Description |
|---|---|
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.empty() |
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.of()
Same as
MutableSortedMapFactory.empty(). |
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.of(Comparator<? super K> comparator)
|
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.of(Comparator<? super K> comparator,
K key,
V value)
|
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.of(Comparator<? super K> comparator,
K key1,
V value1,
K key2,
V value2)
|
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.of(Comparator<? super K> comparator,
K key1,
V value1,
K key2,
V value2,
K key3,
V value3)
|
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.of(Comparator<? super K> comparator,
K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4)
|
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.of(K key,
V value)
|
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.of(K key1,
V value1,
K key2,
V value2)
|
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.of(K key1,
V value1,
K key2,
V value2,
K key3,
V value3)
|
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.of(K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4)
|
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.ofSortedMap(Map<? extends K,? extends V> map)
|
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.with()
Same as
MutableSortedMapFactory.empty(). |
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.with(Comparator<? super K> comparator) |
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.with(Comparator<? super K> comparator,
K key,
V value) |
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.with(Comparator<? super K> comparator,
K key1,
V value1,
K key2,
V value2) |
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.with(Comparator<? super K> comparator,
K key1,
V value1,
K key2,
V value2,
K key3,
V value3) |
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.with(Comparator<? super K> comparator,
K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4) |
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.with(K key,
V value) |
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.with(K key1,
V value1,
K key2,
V value2) |
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.with(K key1,
V value1,
K key2,
V value2,
K key3,
V value3) |
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.with(K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4) |
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.withSortedMap(Map<? extends K,? extends V> map) |
| Modifier and Type | Method and Description |
|---|---|
MutableSortedMap<K,V> |
MutableSortedMap.asSynchronized() |
MutableSortedMap<K,V> |
MutableSortedMap.asUnmodifiable() |
MutableSortedMap<K,V> |
MutableSortedMap.clone() |
<E> MutableSortedMap<K,V> |
MutableSortedMap.collectKeysAndValues(Iterable<E> iterable,
Function<? super E,? extends K> keyFunction,
Function<? super E,? extends V> valueFunction)
Adds all the entries derived from
iterable to this. |
<R> MutableSortedMap<K,R> |
MutableSortedMap.collectValues(Function2<? super K,? super V,? extends R> function) |
MutableSortedMap<K,V> |
MutableSortedMap.drop(int count) |
MutableSortedMap<K,V> |
MutableSortedMap.dropWhile(Predicate<? super V> predicate) |
MutableSortedMap<K,V> |
MutableSortedMap.headMap(K toKey) |
MutableSortedMap<K,V> |
MutableSortedMap.newEmpty()
Creates a new instance of the same type with the same internal Comparator.
|
MutableSortedMap<K,V> |
MutableSortedMap.reject(Predicate2<? super K,? super V> predicate) |
MutableSortedMap<K,V> |
MutableSortedMap.select(Predicate2<? super K,? super V> predicate) |
MutableSortedMap<K,V> |
MutableSortedMap.subMap(K fromKey,
K toKey) |
MutableSortedMap<K,V> |
MutableSortedMap.tailMap(K fromKey) |
MutableSortedMap<K,V> |
MutableSortedMap.take(int count) |
MutableSortedMap<K,V> |
MutableSortedMap.takeWhile(Predicate<? super V> predicate) |
MutableSortedMap<K,V> |
MutableSortedMap.tap(Procedure<? super V> procedure) |
MutableSortedMap<K,V> |
MutableSortedMap.toReversed() |
MutableSortedMap<K,V> |
ImmutableSortedMap.toSortedMap() |
default MutableSortedMap<K,V> |
MutableSortedMap.with(Pair<K,V>... pairs)
Deprecated.
in 6.0 Use
withAllKeyValueArguments(Pair[]) instead. Inlineable. |
MutableSortedMap<K,V> |
MutableSortedMap.withAllKeyValueArguments(Pair<? extends K,? extends V>... keyValuePairs) |
MutableSortedMap<K,V> |
MutableSortedMap.withAllKeyValues(Iterable<? extends Pair<? extends K,? extends V>> keyValues) |
MutableSortedMap<K,V> |
MutableSortedMap.withKeyValue(K key,
V value) |
default MutableSortedMap<K,V> |
MutableSortedMap.withMap(Map<? extends K,? extends V> map) |
default MutableSortedMap<K,V> |
MutableSortedMap.withMapIterable(MapIterable<? extends K,? extends V> mapIterable) |
MutableSortedMap<K,V> |
MutableSortedMap.withoutAllKeys(Iterable<? extends K> keys) |
MutableSortedMap<K,V> |
MutableSortedMap.withoutKey(K key) |
Copyright © 2004–2021. All rights reserved.