| Constructor and Description |
|---|
FallibleIterator(Class<E> clazz,
List<? extends Object> elements)
Creates an instance with a given type of the elements and given actual elements.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
E |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic FallibleIterator(Class<E> clazz, List<? extends Object> elements) throws IllegalArgumentException
clazz - the type of elementselements - the actual elements, including RuntimeExceptionsIllegalArgumentException - if the elements are neither RuntimeExceptions nor have the declared type.Copyright © 2018. All Rights Reserved.