org.javimmutable.collections.listmap
Class JImmutableInsertOrderListMap<K,V>

java.lang.Object
  extended by org.javimmutable.collections.listmap.AbstractJImmutableListMap<K,V>
      extended by org.javimmutable.collections.listmap.JImmutableInsertOrderListMap<K,V>
Type Parameters:
K -
V -
All Implemented Interfaces:
Iterable<JImmutableMap.Entry<K,JImmutableList<V>>>, Cursorable<JImmutableMap.Entry<K,JImmutableList<V>>>, Insertable<JImmutableMap.Entry<K,V>>, JImmutableListMap<K,V>, Mapped<K,JImmutableList<V>>

@Immutable
public class JImmutableInsertOrderListMap<K,V>
extends AbstractJImmutableListMap<K,V>

JImmutableListMap implementation that allows keys to be traversed in the same order as they were inserted into the collection.


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
<K,V> JImmutableInsertOrderListMap<K,V>
of()
           
 
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

of

public static <K,V> JImmutableInsertOrderListMap<K,V> of()

create

protected JImmutableListMap<K,V> create(JImmutableMap<K,JImmutableList<V>> map)
Description copied from class: AbstractJImmutableListMap
Implemented by derived classes to create a new instance of the appropriate class.

Specified by:
create in class AbstractJImmutableListMap<K,V>
Returns:


Copyright © 2014 Burton Computer Corporation. All rights reserved.