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