/** * Constructs an iterator that selects only elements of the parsed iterator * that are assignable to the parse type * @param it the base iterator * @param type the type all elements of this Iterator need to be assignable to. */ @SuppressWarnings("unchecked") public TypeSafeIterator(Iterator<?> it,Class<T> type){ super((Iterator<Object>)it,new AssignableFormAdapter<T>(),type); }
/** * Constructs an iterator that selects only elements of the parsed iterator * that are assignable to the parse type * @param it the base iterator * @param type the type all elements of this Iterator need to be assignable to. */ @SuppressWarnings("unchecked") public TypeSafeIterator(Iterator<?> it,Class<T> type){ super((Iterator<Object>)it,new AssignableFormAdapter<T>(),type); }