This extended Map
represents a mapping where a key may lookup a value and a value may lookup a key with equal ease. This interface extends Map
and so may be used anywhere a map is required. The interface provides an inverse map view, enabling full access to both directions of the BidiMap
.
Implementations should allow a value to be looked up from a key and a key to be looked up from a value with equal performance.
This map enforces the restriction that there is a 1:1 relation between keys and values, meaning that multiple keys cannot map to the same value. This is required so that "inverting" the map results in a map without duplicate keys. See the {@link #put} method description for more information. @since Commons Collections 3.0 @version $Revision: 1.16 $ $Date: 2004/05/10 20:37:19 $ @author Stephen Colebourne
|
|
|
|
|
|