|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.javimmutable.collections.listmap.AbstractJImmutableListMap<K,V>
org.javimmutable.collections.listmap.JImmutableTreeListMap<K,V>
K
- V
- @Immutable public class JImmutableTreeListMap<K,V>
JImmutableListMap implementation that allows keys to be traversed in sorted order using a Comparator of the natural ordering of the keys if they implement Comparable.
Method Summary | ||
---|---|---|
protected JImmutableListMap<K,V> |
create(JImmutableMap<K,JImmutableList<V>> map)
Implemented by derived classes to create a new instance of the appropriate class. |
|
static
|
of()
Constructs an empty list map whose keys are sorted in their natural ordering. |
|
static
|
of(Comparator<K> comparator)
Constructs an empty list map using the specified Comparator. |
Methods inherited from class org.javimmutable.collections.listmap.AbstractJImmutableListMap |
---|
assign, copyList, cursor, delete, deleteAll, emptyList, equals, find, get, getList, getValueOr, hashCode, insert, insert, insertInList, isEmpty, iterator, keysCursor, size, toString, valuesCursor |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static <K extends Comparable<K>,V> JImmutableTreeListMap<K,V> of()
K
- V
-
public static <K,V> JImmutableTreeListMap<K,V> of(Comparator<K> comparator)
comparator
- protected JImmutableListMap<K,V> create(JImmutableMap<K,JImmutableList<V>> map)
AbstractJImmutableListMap
create
in class AbstractJImmutableListMap<K,V>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |