r01f.types.collections
Class InsertionOrderedMap<K,V>

java.lang.Object
  extended by com.google.common.collect.ForwardingObject
      extended by com.google.common.collect.ForwardingMap<K,V>
          extended by r01f.types.collections.InsertionOrderedMap<K,V>
All Implemented Interfaces:
java.util.Map<K,V>

public class InsertionOrderedMap<K,V>
extends com.google.common.collect.ForwardingMap<K,V>

Mapa ordenado por el orden de inserción que añade metodos como: firstKey, lastKey, nextKey, previousKey


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.common.collect.ForwardingMap
com.google.common.collect.ForwardingMap.StandardEntrySet, com.google.common.collect.ForwardingMap.StandardKeySet, com.google.common.collect.ForwardingMap.StandardValues
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Field Summary
private  org.apache.commons.collections.OrderedMap _delegate
           
 
Constructor Summary
InsertionOrderedMap()
          Constructor
InsertionOrderedMap(int size)
           
 
Method Summary
static
<K,V> java.util.Map<K,V>
create()
          Método factoría del StackedMap
protected  java.util.Map<K,V> delegate()
           
 K firstKey()
           
 K lastKey()
           
 K nextKey(K ofKey)
           
 K previousKey(java.lang.Object ofKey)
           
 
Methods inherited from class com.google.common.collect.ForwardingMap
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, standardClear, standardContainsKey, standardContainsValue, standardEquals, standardHashCode, standardIsEmpty, standardPutAll, standardRemove, standardToString, values
 
Methods inherited from class com.google.common.collect.ForwardingObject
toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_delegate

private final org.apache.commons.collections.OrderedMap _delegate
Constructor Detail

InsertionOrderedMap

public InsertionOrderedMap()
Constructor

Parameters:
delegate - el mapa al que se delegan las llamadas

InsertionOrderedMap

public InsertionOrderedMap(int size)
Method Detail

create

public static <K,V> java.util.Map<K,V> create()
Método factoría del StackedMap

Parameters:
instance - instancia de un mapa que se quiere convertir en StackedMap
Returns:
el StackedMap

delegate

protected java.util.Map<K,V> delegate()
Overrides:
delegate in class com.google.common.collect.ForwardingMap<K,V>

firstKey

public K firstKey()

lastKey

public K lastKey()

nextKey

public K nextKey(K ofKey)

previousKey

public K previousKey(java.lang.Object ofKey)