net.sf.molae.pipe.correct
Class CorrectList<E>
java.lang.Object
net.sf.molae.pipe.basic.ObjectProxy<B>
net.sf.molae.pipe.basic.CollectionProxy<B,E>
net.sf.molae.pipe.basic.ListProxy<List<E>,E>
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. |
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 interface java.util.List |
add, addAll, clear, contains, containsAll, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArray |
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
.
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>