net.sf.molae.pipe.correct
Class CorrectList<E>

java.lang.Object
  extended by net.sf.molae.pipe.basic.ObjectProxy<B>
      extended by net.sf.molae.pipe.basic.CollectionProxy<B,E>
          extended by net.sf.molae.pipe.basic.ListProxy<List<E>,E>
              extended by net.sf.molae.pipe.correct.CorrectList<E>
All Implemented Interfaces:
Iterable<E>, Collection<E>, List<E>

public class CorrectList<E>
extends ListProxy<List<E>,E>

Wrapper class to receive the correct exceptions from lists.


Constructor Summary
CorrectList(List<E> base)
          Constructs a new exception safe list wrapper.
 
Method Summary
 Iterator<E> iterator()
          Returns a CorrectIterator version of the base list's iterator.
 
Methods inherited from class net.sf.molae.pipe.basic.ListProxy
add, addAll, equals, get, indexOf, lastIndexOf, listIterator, listIterator, remove, set, subList
 
Methods inherited from class net.sf.molae.pipe.basic.CollectionProxy
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from class net.sf.molae.pipe.basic.ObjectProxy
assertNotNull, getBase, hashCode, toString, toVerboseString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
add, addAll, clear, contains, containsAll, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArray
 

Constructor Detail

CorrectList

public CorrectList(List<E> base)
Constructs a new exception safe list wrapper.

Parameters:
base - the underlying list.
Throws:
NullPointerException - if the specified object is null.
Method Detail

iterator

public Iterator<E> iterator()
Returns a CorrectIterator version of the base list's iterator.

Specified by:
iterator in interface Iterable<E>
Specified by:
iterator in interface Collection<E>
Specified by:
iterator in interface List<E>
Overrides:
iterator in class CollectionProxy<List<E>,E>