org.hamcrest.internal.SelfDescribingValueIterator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of virtdata-lib-realer Show documentation
Show all versions of virtdata-lib-realer Show documentation
With inspiration from other libraries
package org.hamcrest.internal;
import java.util.Iterator;
import org.hamcrest.SelfDescribing;
public class SelfDescribingValueIterator implements Iterator {
private Iterator values;
public SelfDescribingValueIterator(Iterator values) {
this.values = values;
}
@Override
public boolean hasNext() {
return values.hasNext();
}
@Override
public SelfDescribing next() {
return new SelfDescribingValue(values.next());
}
@Override
public void remove() {
values.remove();
}
}