T - the type of elements returned by this iteratorpublic class TypeSafeIterator<T> extends AdaptingIterator<Object,T> implements Iterator<T>
AdaptingIterator.Adapter<T,A>| Constructor and Description |
|---|
TypeSafeIterator(Iterator<?> it,
Class<T> type)
Constructs an iterator that selects only elements of the parsed iterator
that are assignable to the parse type
|
Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.