com.nytimes.android.external.cache.UnmodifiableIterator Maven / Gradle / Ivy
package com.nytimes.android.external.cache;
import java.util.Iterator;
public abstract class UnmodifiableIterator implements Iterator {
/** Constructor for use by subclasses. */
protected UnmodifiableIterator() {}
/**
* Guaranteed to throw an exception and leave the underlying data unmodified.
*
* @throws UnsupportedOperationException always
* @deprecated Unsupported operation.
*/
@Deprecated
@Override
public final void remove() {
throw new UnsupportedOperationException();
}
}