org.apache.mahout.common.iterator
Class CopyConstructorIterator<T>

java.lang.Object
  extended by com.google.common.collect.ForwardingObject
      extended by com.google.common.collect.ForwardingIterator<T>
          extended by org.apache.mahout.common.iterator.CopyConstructorIterator<T>
All Implemented Interfaces:
Iterator<T>

public final class CopyConstructorIterator<T>
extends com.google.common.collect.ForwardingIterator<T>

An iterator that copies the values in an underlying iterator by finding an appropriate copy constructor.


Constructor Summary
CopyConstructorIterator(Iterator<? extends T> copyFrom)
           
 
Method Summary
protected  Iterator<T> delegate()
           
 
Methods inherited from class com.google.common.collect.ForwardingIterator
hasNext, next, remove
 
Methods inherited from class com.google.common.collect.ForwardingObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CopyConstructorIterator

public CopyConstructorIterator(Iterator<? extends T> copyFrom)
Method Detail

delegate

protected Iterator<T> delegate()
Overrides:
delegate in class com.google.common.collect.ForwardingIterator<T>


Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.