JUtil

net.cscott.jutil
Class UnmodifiableMultiMapSet<K,V>

java.lang.Object
  extended by net.cscott.jutil.CollectionWrapper<E>
      extended by net.cscott.jutil.SetWrapper<Map.Entry<K,V>>
          extended by net.cscott.jutil.UnmodifiableMapSet<K,V>
              extended by net.cscott.jutil.UnmodifiableMultiMapSet<K,V>
All Implemented Interfaces:
Iterable<Map.Entry<K,V>>, Collection<Map.Entry<K,V>>, Set<Map.Entry<K,V>>, MapSet<K,V>, MultiMapSet<K,V>

public abstract class UnmodifiableMultiMapSet<K,V>
extends UnmodifiableMapSet<K,V>
implements MultiMapSet<K,V>

UnmodifiableMultiMapSet prevents mutation of a wrapped MultiMapSet.

Version:
$Id: UnmodifiableMultiMapSet.java,v 1.1 2006-10-29 20:15:48 cananian Exp $
Author:
C. Scott Ananian

Constructor Summary
protected UnmodifiableMultiMapSet()
           
 
Method Summary
 UnmodifiableMultiMap<K,V> asMap()
           
abstract  UnmodifiableMultiMap<K,V> asMultiMap()
           
protected abstract  MultiMapSet<K,V> wrapped()
          Implementations should return the wrapped MultiMapSet here.
 
Methods inherited from class net.cscott.jutil.UnmodifiableMapSet
add, addAll, clear, iterator, remove, removeAll, retainAll
 
Methods inherited from class net.cscott.jutil.CollectionWrapper
contains, containsAll, equals, hashCode, isEmpty, size, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Constructor Detail

UnmodifiableMultiMapSet

protected UnmodifiableMultiMapSet()
Method Detail

wrapped

protected abstract MultiMapSet<K,V> wrapped()
Implementations should return the wrapped MultiMapSet here.

Specified by:
wrapped in class UnmodifiableMapSet<K,V>

asMap

public UnmodifiableMultiMap<K,V> asMap()
Specified by:
asMap in interface MapSet<K,V>
Specified by:
asMap in interface MultiMapSet<K,V>
Specified by:
asMap in class UnmodifiableMapSet<K,V>

asMultiMap

public abstract UnmodifiableMultiMap<K,V> asMultiMap()
Specified by:
asMultiMap in interface MultiMapSet<K,V>

JUtil

Copyright (c) 2006 C. Scott Ananian