public Everything(Class<? extends T> elementClass, IIndexProvider<? extends T> indexProvider) { super(RepeatableIterator.<T>create(indexProvider)); this.elementClass = elementClass; }
Everything(Class<? extends T> elementClass, Iterator<? extends T> iterator, boolean needsRepeat) { super(needsRepeat ? RepeatableIterator.create(iterator) : iterator); this.elementClass = elementClass; }
public Everything(Class<? extends T> elementClass, Collection<T> collection) { super( RepeatableIterator.<T>create( collection == null ? CollectionUtils.<T>emptyList() : collection)); this.elementClass = elementClass; }