com.github.andrewoma.dexx.collection
Class SortedMaps

java.lang.Object
  extended by com.github.andrewoma.dexx.collection.SortedMaps

public class SortedMaps
extends 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:


Method Summary
static
<K extends Comparable<? super K>,V>
Builder<Pair<K,V>,SortedMap<K,V>>
builder()
           
static
<K,V> Builder<Pair<K,V>,SortedMap<K,V>>
builder(Comparator<? super K> comparator)
           
static
<K,V> SortedMap<K,V>
copyOf(Comparator<? super K> comparator, Iterable<Pair<K,V>> iterable)
           
static
<K,V> SortedMap<K,V>
copyOf(Comparator<? super K> comparator, Iterator<Pair<K,V>> iterator)
           
static
<K,V> SortedMap<K,V>
copyOf(Comparator<? super K> comparator, Pair<K,V>[] pairs)
           
static
<K extends Comparable<? super K>,V>
SortedMap<K,V>
copyOf(Iterable<Pair<K,V>> iterable)
           
static
<K extends Comparable<? super K>,V>
SortedMap<K,V>
copyOf(Iterator<Pair<K,V>> iterator)
           
static
<K extends Comparable<? super K>,V>
SortedMap<K,V>
copyOf(Pair<K,V>[] pairs)
           
static
<K,V> SortedMap<K,V>
copyOfTraversable(Comparator<? super K> comparator, Traversable<Pair<K,V>> traversable)
           
static
<K extends Comparable<? super K>,V>
SortedMap<K,V>
copyOfTraversable(Traversable<Pair<K,V>> traversable)
           
static
<K extends Comparable<? super K>,V>
BuilderFactory<Pair<K,V>,SortedMap<K,V>>
factory()
           
static
<K,V> BuilderFactory<Pair<K,V>,SortedMap<K,V>>
factory(Comparator<? super K> comparator)
           
static
<K extends Comparable<? super K>,V>
SortedMap<K,V>
of()
           
static
<K,V> SortedMap<K,V>
of(Comparator<? super K> comparator)
           
static
<K,V> SortedMap<K,V>
of(Comparator<? super K> comparator, K k, V v)
           
static
<K,V> SortedMap<K,V>
of(Comparator<? super K> comparator, K k1, V v1, K k2, V v2)
           
static
<K,V> SortedMap<K,V>
of(Comparator<? super K> comparator, K k1, V v1, K k2, V v2, K k3, V v3)
           
static
<K,V> SortedMap<K,V>
of(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(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 Comparable<? super K>,V>
SortedMap<K,V>
of(K k, V v)
           
static
<K extends Comparable<? super K>,V>
SortedMap<K,V>
of(K k1, V v1, K k2, V v2)
           
static
<K extends Comparable<? super K>,V>
SortedMap<K,V>
of(K k1, V v1, K k2, V v2, K k3, V v3)
           
static
<K extends Comparable<? super K>,V>
SortedMap<K,V>
of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4)
           
static
<K extends 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

of

@NotNull
public static <K extends Comparable<? super K>,V> SortedMap<K,V> of()

of

@NotNull
public static <K extends Comparable<? super K>,V> SortedMap<K,V> of(K k,
                                                                            V v)

of

@NotNull
public static <K extends Comparable<? super K>,V> SortedMap<K,V> of(K k1,
                                                                            V v1,
                                                                            K k2,
                                                                            V v2)

of

@NotNull
public static <K extends Comparable<? super K>,V> SortedMap<K,V> of(K k1,
                                                                            V v1,
                                                                            K k2,
                                                                            V v2,
                                                                            K k3,
                                                                            V v3)

of

@NotNull
public static <K extends Comparable<? super K>,V> SortedMap<K,V> of(K k1,
                                                                            V v1,
                                                                            K k2,
                                                                            V v2,
                                                                            K k3,
                                                                            V v3,
                                                                            K k4,
                                                                            V v4)

of

@NotNull
public static <K extends 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)

of

@NotNull
public static <K,V> SortedMap<K,V> of(Comparator<? super K> comparator)

of

@NotNull
public static <K,V> SortedMap<K,V> of(Comparator<? super K> comparator,
                                              K k,
                                              V v)

of

@NotNull
public static <K,V> SortedMap<K,V> of(Comparator<? super K> comparator,
                                              K k1,
                                              V v1,
                                              K k2,
                                              V v2)

of

@NotNull
public static <K,V> SortedMap<K,V> of(Comparator<? super K> comparator,
                                              K k1,
                                              V v1,
                                              K k2,
                                              V v2,
                                              K k3,
                                              V v3)

of

@NotNull
public static <K,V> SortedMap<K,V> of(Comparator<? super K> comparator,
                                              K k1,
                                              V v1,
                                              K k2,
                                              V v2,
                                              K k3,
                                              V v3,
                                              K k4,
                                              V v4)

of

@NotNull
public static <K,V> SortedMap<K,V> of(Comparator<? super K> comparator,
                                              K k1,
                                              V v1,
                                              K k2,
                                              V v2,
                                              K k3,
                                              V v3,
                                              K k4,
                                              V v4,
                                              K k5,
                                              V v5)

copyOf

@NotNull
public static <K extends Comparable<? super K>,V> SortedMap<K,V> copyOf(Iterable<Pair<K,V>> iterable)

copyOf

@NotNull
public static <K extends Comparable<? super K>,V> SortedMap<K,V> copyOf(Iterator<Pair<K,V>> iterator)

copyOf

@NotNull
public static <K extends Comparable<? super K>,V> SortedMap<K,V> copyOf(Pair<K,V>[] pairs)

copyOfTraversable

@NotNull
public static <K extends Comparable<? super K>,V> SortedMap<K,V> copyOfTraversable(Traversable<Pair<K,V>> traversable)

copyOf

@NotNull
public static <K,V> SortedMap<K,V> copyOf(Comparator<? super K> comparator,
                                                  Iterable<Pair<K,V>> iterable)

copyOf

@NotNull
public static <K,V> SortedMap<K,V> copyOf(Comparator<? super K> comparator,
                                                  Iterator<Pair<K,V>> iterator)

copyOf

@NotNull
public static <K,V> SortedMap<K,V> copyOf(Comparator<? super K> comparator,
                                                  Pair<K,V>[] pairs)

copyOfTraversable

@NotNull
public static <K,V> SortedMap<K,V> copyOfTraversable(Comparator<? super K> comparator,
                                                             Traversable<Pair<K,V>> traversable)

factory

@NotNull
public static <K extends Comparable<? super K>,V> BuilderFactory<Pair<K,V>,SortedMap<K,V>> factory()

factory

@NotNull
public static <K,V> BuilderFactory<Pair<K,V>,SortedMap<K,V>> factory(Comparator<? super K> comparator)

builder

@NotNull
public static <K extends Comparable<? super K>,V> Builder<Pair<K,V>,SortedMap<K,V>> builder()

builder

@NotNull
public static <K,V> Builder<Pair<K,V>,SortedMap<K,V>> builder(Comparator<? super K> comparator)


Copyright © 2014. All Rights Reserved.