package cc.mallet.pipe.iterator;

import java.util.Iterator;

import cc.mallet.types.Instance;

public class EmptyInstanceIterator implements Iterator {

	public boolean hasNext() { return false; }
	public Instance next () { throw new IllegalStateException ("This iterator never has any instances.");	}
	public void remove () { throw new IllegalStateException ("This iterator does not support remove().");	}
}

 

Ads help maintain this website.