⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
org.apache.commons.collections.bidimap

Class UnmodifiableBidiMap

java.lang.Object
|
+--org.apache.commons.collections.map.AbstractMapDecorator
   |
   +--org.apache.commons.collections.bidimap.AbstractBidiMapDecorator
      |
      +--org.apache.commons.collections.bidimap.UnmodifiableBidiMap

All Implemented Interfaces:
Map, BidiMap, Unmodifiable


public final class UnmodifiableBidiMap
extends AbstractBidiMapDecorator
implements Unmodifiable

Decorates another BidiMap to ensure it can't be altered.
Since:
Commons Collections 3.0
Author:
Stephen Colebourne

Method Summary

void

clear()

static BidiMap

decorate(BidiMap map)

Factory method to create an unmodifiable map.

Set

entrySet()

BidiMap

inverseBidiMap()

Set

keySet()

MapIterator

mapIterator()

Object

put(Object key, Object value)

void

putAll(Map mapToCopy)

Object

remove(Object key)

Object

removeValue(Object value)

Collection

values()

Method Details

clear

public void clear()


decorate

public static BidiMap decorate(BidiMap map)

Factory method to create an unmodifiable map.

Parameters:
map - the map to decorate, must not be null
Throws:
- if map is null

entrySet

public Set entrySet()


inverseBidiMap

public BidiMap inverseBidiMap()


keySet

public Set keySet()


mapIterator

public MapIterator mapIterator()


put

public Object put(Object key, Object value)

Parameters:
key
value

putAll

public void putAll(Map mapToCopy)

Parameters:
mapToCopy

remove

public Object remove(Object key)

Parameters:
key

removeValue

public Object removeValue(Object value)

Parameters:
value

values

public Collection values()