public class SortedMaps
extends java.lang.Object
SortedMaps is the preferred method of constructing instances of SortedMap.
TreeMap is currently constructed in
all cases, however this may change in the future.
SortedMaps is preferred for construction as:
TreeMaps)
| Modifier and Type | Method and Description |
|---|---|
static <K extends java.lang.Comparable<? super K>,V> |
builder() |
static <K,V> Builder<Pair<K,V>,SortedMap<K,V>> |
builder(java.util.Comparator<? super K> comparator) |
static <K,V> SortedMap<K,V> |
copyOf(java.util.Comparator<? super K> comparator,
java.lang.Iterable<Pair<K,V>> iterable) |
static <K,V> SortedMap<K,V> |
copyOf(java.util.Comparator<? super K> comparator,
java.util.Iterator<Pair<K,V>> iterator) |
static <K,V> SortedMap<K,V> |
copyOf(java.util.Comparator<? super K> comparator,
Pair<K,V>[] pairs) |
static <K extends java.lang.Comparable<? super K>,V> |
copyOf(java.lang.Iterable<Pair<K,V>> iterable) |
static <K extends java.lang.Comparable<? super K>,V> |
copyOf(java.util.Iterator<Pair<K,V>> iterator) |
static <K extends java.lang.Comparable<? super K>,V> |
copyOf(Pair<K,V>[] pairs) |
static <K,V> SortedMap<K,V> |
copyOfTraversable(java.util.Comparator<? super K> comparator,
Traversable<Pair<K,V>> traversable) |
static <K extends java.lang.Comparable<? super K>,V> |
copyOfTraversable(Traversable<Pair<K,V>> traversable) |
static <K extends java.lang.Comparable<? super K>,V> |
factory() |
static <K,V> BuilderFactory<Pair<K,V>,SortedMap<K,V>> |
factory(java.util.Comparator<? super K> comparator) |
static <K extends java.lang.Comparable<? super K>,V> |
of() |
static <K,V> SortedMap<K,V> |
of(java.util.Comparator<? super K> comparator) |
static <K,V> SortedMap<K,V> |
of(java.util.Comparator<? super K> comparator,
K k,
V v) |
static <K,V> SortedMap<K,V> |
of(java.util.Comparator<? super K> comparator,
K k1,
V v1,
K k2,
V v2) |
static <K,V> SortedMap<K,V> |
of(java.util.Comparator<? super K> comparator,
K k1,
V v1,
K k2,
V v2,
K k3,
V v3) |
static <K,V> SortedMap<K,V> |
of(java.util.Comparator<? super K> comparator,
K k1,
V v1,
K k2,
V v2,
K k3,
V v3,
K k4,
V v4) |
static <K,V> SortedMap<K,V> |
of(java.util.Comparator<? super K> comparator,
K k1,
V v1,
K k2,
V v2,
K k3,
V v3,
K k4,
V v4,
K k5,
V v5) |
static <K extends java.lang.Comparable<? super K>,V> |
of(K k,
V v) |
static <K extends java.lang.Comparable<? super K>,V> |
of(K k1,
V v1,
K k2,
V v2) |
static <K extends java.lang.Comparable<? super K>,V> |
of(K k1,
V v1,
K k2,
V v2,
K k3,
V v3) |
static <K extends java.lang.Comparable<? super K>,V> |
of(K k1,
V v1,
K k2,
V v2,
K k3,
V v3,
K k4,
V v4) |
static <K extends java.lang.Comparable<? super K>,V> |
of(K k1,
V v1,
K k2,
V v2,
K k3,
V v3,
K k4,
V v4,
K k5,
V v5) |
@NotNull public static <K extends java.lang.Comparable<? super K>,V> SortedMap<K,V> of()
@NotNull public static <K extends java.lang.Comparable<? super K>,V> SortedMap<K,V> of(K k, V v)
@NotNull public static <K extends java.lang.Comparable<? super K>,V> SortedMap<K,V> of(K k1, V v1, K k2, V v2)
@NotNull public static <K extends java.lang.Comparable<? super K>,V> SortedMap<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3)
@NotNull public static <K extends java.lang.Comparable<? super K>,V> SortedMap<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4)
@NotNull public static <K extends java.lang.Comparable<? super K>,V> SortedMap<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5)
@NotNull public static <K,V> SortedMap<K,V> of(java.util.Comparator<? super K> comparator)
@NotNull public static <K,V> SortedMap<K,V> of(java.util.Comparator<? super K> comparator, K k, V v)
@NotNull public static <K,V> SortedMap<K,V> of(java.util.Comparator<? super K> comparator, K k1, V v1, K k2, V v2)
@NotNull public static <K,V> SortedMap<K,V> of(java.util.Comparator<? super K> comparator, K k1, V v1, K k2, V v2, K k3, V v3)
@NotNull public static <K,V> SortedMap<K,V> of(java.util.Comparator<? super K> comparator, K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4)
@NotNull public static <K,V> SortedMap<K,V> of(java.util.Comparator<? super K> comparator, K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5)
@NotNull public static <K extends java.lang.Comparable<? super K>,V> SortedMap<K,V> copyOf(java.lang.Iterable<Pair<K,V>> iterable)
@NotNull public static <K extends java.lang.Comparable<? super K>,V> SortedMap<K,V> copyOf(java.util.Iterator<Pair<K,V>> iterator)
@NotNull public static <K extends java.lang.Comparable<? super K>,V> SortedMap<K,V> copyOf(Pair<K,V>[] pairs)
@NotNull public static <K extends java.lang.Comparable<? super K>,V> SortedMap<K,V> copyOfTraversable(Traversable<Pair<K,V>> traversable)
@NotNull public static <K,V> SortedMap<K,V> copyOf(java.util.Comparator<? super K> comparator, java.lang.Iterable<Pair<K,V>> iterable)
@NotNull public static <K,V> SortedMap<K,V> copyOf(java.util.Comparator<? super K> comparator, java.util.Iterator<Pair<K,V>> iterator)
@NotNull public static <K,V> SortedMap<K,V> copyOf(java.util.Comparator<? super K> comparator, Pair<K,V>[] pairs)
@NotNull public static <K,V> SortedMap<K,V> copyOfTraversable(java.util.Comparator<? super K> comparator, Traversable<Pair<K,V>> traversable)
@NotNull public static <K extends java.lang.Comparable<? super K>,V> BuilderFactory<Pair<K,V>,SortedMap<K,V>> factory()
@NotNull public static <K,V> BuilderFactory<Pair<K,V>,SortedMap<K,V>> factory(java.util.Comparator<? super K> comparator)
@NotNull public static <K extends java.lang.Comparable<? super K>,V> Builder<Pair<K,V>,SortedMap<K,V>> builder()