1 16 package org.apache.commons.collections.bidimap; 17 18 import org.apache.commons.collections.OrderedBidiMap; 19 import org.apache.commons.collections.OrderedMapIterator; 20 21 38 public abstract class AbstractOrderedBidiMapDecorator 39 extends AbstractBidiMapDecorator implements OrderedBidiMap { 40 41 47 protected AbstractOrderedBidiMapDecorator(OrderedBidiMap map) { 48 super(map); 49 } 50 51 56 protected OrderedBidiMap getOrderedBidiMap() { 57 return (OrderedBidiMap) map; 58 } 59 60 public OrderedMapIterator orderedMapIterator() { 62 return getOrderedBidiMap().orderedMapIterator(); 63 } 64 65 public Object firstKey() { 66 return getOrderedBidiMap().firstKey(); 67 } 68 69 public Object lastKey() { 70 return getOrderedBidiMap().lastKey(); 71 } 72 73 public Object nextKey(Object key) { 74 return getOrderedBidiMap().nextKey(key); 75 } 76 77 public Object previousKey(Object key) { 78 return getOrderedBidiMap().previousKey(key); 79 } 80 81 public OrderedBidiMap inverseOrderedBidiMap() { 82 return getOrderedBidiMap().inverseOrderedBidiMap(); 83 } 84 85 } 86 | Popular Tags |