| Package | Description |
|---|---|
| com.gs.collections.api |
This package contains interfaces for GS Collections API.
|
| com.gs.collections.api.bag.sorted |
This package contains interfaces for SortedBag API.
|
| com.gs.collections.api.factory.map.sorted |
This package contains factory API for creating instances of type
SortedMapIterable. |
| com.gs.collections.api.map.sorted |
This package contains mutable and immutable sorted map interfaces.
|
| Modifier and Type | Method and Description |
|---|---|
<NK,NV> MutableSortedMap<NK,NV> |
ParallelIterable.toSortedMap(java.util.Comparator<? super NK> comparator,
Function<? super T,? extends NK> keyFunction,
Function<? super T,? extends NV> valueFunction) |
<NK,NV> MutableSortedMap<NK,NV> |
RichIterable.toSortedMap(java.util.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(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.
|
| Modifier and Type | Method and Description |
|---|---|
MutableSortedMap<T,java.lang.Integer> |
SortedBag.toMapOfItemToCount() |
| Modifier and Type | Method and Description |
|---|---|
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.of()
Same as
MutableSortedMapFactory.with(). |
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.of(java.util.Comparator<? super K> comparator)
|
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.of(java.util.Comparator<? super K> comparator,
K key,
V value)
|
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.of(java.util.Comparator<? super K> comparator,
K key1,
V value1,
K key2,
V value2)
|
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.of(java.util.Comparator<? super K> comparator,
K key1,
V value1,
K key2,
V value2,
K key3,
V value3)
|
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.of(java.util.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(java.util.Map<? extends K,? extends V> map)
|
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.with() |
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.with(java.util.Comparator<? super K> comparator) |
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.with(java.util.Comparator<? super K> comparator,
K key,
V value) |
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.with(java.util.Comparator<? super K> comparator,
K key1,
V value1,
K key2,
V value2) |
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.with(java.util.Comparator<? super K> comparator,
K key1,
V value1,
K key2,
V value2,
K key3,
V value3) |
<K,V> MutableSortedMap<K,V> |
MutableSortedMapFactory.with(java.util.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(java.util.Map<? extends K,? extends V> map) |
| Modifier and Type | Method and Description |
|---|---|
MutableSortedMap<K,V> |
MutableSortedMap.asSynchronized()
Returns a synchronized (thread-safe) map backed by the specified
map.
|
MutableSortedMap<K,V> |
MutableSortedMap.asUnmodifiable()
Returns an unmodifiable view of this map.
|
MutableSortedMap<K,V> |
MutableSortedMap.clone() |
<E> MutableSortedMap<K,V> |
MutableSortedMap.collectKeysAndValues(java.lang.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.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> |
ImmutableSortedMap.toSortedMap() |
MutableSortedMap<K,V> |
MutableSortedMap.with(Pair<K,V>... pairs) |