1 16 package org.apache.commons.collections.map; 17 18 import org.apache.commons.collections.MapIterator; 19 import org.apache.commons.collections.OrderedMap; 20 import org.apache.commons.collections.OrderedMapIterator; 21 22 39 public abstract class AbstractOrderedMapDecorator 40 extends AbstractMapDecorator implements OrderedMap { 41 42 46 protected AbstractOrderedMapDecorator() { 47 super(); 48 } 49 50 56 public AbstractOrderedMapDecorator(OrderedMap map) { 57 super(map); 58 } 59 60 65 protected OrderedMap getOrderedMap() { 66 return (OrderedMap) map; 67 } 68 69 public Object firstKey() { 71 return getOrderedMap().firstKey(); 72 } 73 74 public Object lastKey() { 75 return getOrderedMap().lastKey(); 76 } 77 78 public Object nextKey(Object key) { 79 return getOrderedMap().nextKey(key); 80 } 81 82 public Object previousKey(Object key) { 83 return getOrderedMap().previousKey(key); 84 } 85 86 public MapIterator mapIterator() { 87 return getOrderedMap().mapIterator(); 88 } 89 90 public OrderedMapIterator orderedMapIterator() { 91 return getOrderedMap().orderedMapIterator(); 92 } 93 94 } 95 | Popular Tags |