1 16 package org.apache.commons.collections.bidimap; 17 18 import org.apache.commons.collections.BidiMap; 19 import org.apache.commons.collections.MapIterator; 20 import org.apache.commons.collections.map.AbstractMapDecorator; 21 22 39 public abstract class AbstractBidiMapDecorator 40 extends AbstractMapDecorator implements BidiMap { 41 42 48 protected AbstractBidiMapDecorator(BidiMap map) { 49 super(map); 50 } 51 52 57 protected BidiMap getBidiMap() { 58 return (BidiMap) map; 59 } 60 61 public MapIterator mapIterator() { 63 return getBidiMap().mapIterator(); 64 } 65 66 public Object getKey(Object value) { 67 return getBidiMap().getKey(value); 68 } 69 70 public Object removeValue(Object value) { 71 return getBidiMap().removeValue(value); 72 } 73 74 public BidiMap inverseBidiMap() { 75 return getBidiMap().inverseBidiMap(); 76 } 77 78 } 79 | Popular Tags |