org.apache.commons.collections.bidimap

Class UnmodifiableBidiMap

public final class UnmodifiableBidiMap extends AbstractBidiMapDecorator implements Unmodifiable

Decorates another BidiMap to ensure it can't be altered.

Since: Commons Collections 3.0

Version: $Revision: 155406 $ $Date: 2005-02-26 12:55:26 +0000 (Sat, 26 Feb 2005) $

Author: Stephen Colebourne

Method Summary
voidclear()
static BidiMapdecorate(BidiMap map)
Factory method to create an unmodifiable map.
SetentrySet()
BidiMapinverseBidiMap()
SetkeySet()
MapIteratormapIterator()
Objectput(Object key, Object value)
voidputAll(Map mapToCopy)
Objectremove(Object key)
ObjectremoveValue(Object value)
Collectionvalues()

Method Detail

clear

public void clear()

decorate

public static BidiMap decorate(BidiMap map)
Factory method to create an unmodifiable map.

If the map passed in is already unmodifiable, it is returned.

Parameters: map the map to decorate, must not be null

Returns: an unmodifiable BidiMap

Throws: IllegalArgumentException 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)

putAll

public void putAll(Map mapToCopy)

remove

public Object remove(Object key)

removeValue

public Object removeValue(Object value)

values

public Collection values()
Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.