net.sf.molae.pipe.cube
Class UnmodifiableMaker

java.lang.Object
  extended by net.sf.molae.pipe.cube.UnmodifiableMaker

public class UnmodifiableMaker
extends Object

Contains transformers that provide the unmodifiable wrapper of a collection or a map.

Since:
1.1

Method Summary
static
<E> TwoWayTransformer<Collection<E>,Collection<E>>
getInstance()
          Returns a transformer that provides the unmodifiable wrapper of a collection.
static
<K,V> TwoWayTransformer<Map<K,V>,Map<K,V>>
getMapInstance()
          Returns a transformer that provides the unmodifiable wrapper of a map.
static
<E> TwoWayTransformer<Set<E>,Set<E>>
getSetInstance()
          Returns a transformer that provides the unmodifiable wrapper of a set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static <E> TwoWayTransformer<Collection<E>,Collection<E>> getInstance()
Returns a transformer that provides the unmodifiable wrapper of a collection.

Returns:
a transformer for collections.

getSetInstance

public static <E> TwoWayTransformer<Set<E>,Set<E>> getSetInstance()
Returns a transformer that provides the unmodifiable wrapper of a set.

Returns:
a transformer for sets.

getMapInstance

public static <K,V> TwoWayTransformer<Map<K,V>,Map<K,V>> getMapInstance()
Returns a transformer that provides the unmodifiable wrapper of a map.

Returns:
a transformer for maps.