All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hamcrest.internal.SelfDescribingValueIterator Maven / Gradle / Ivy

Go to download

Statistical sampling library for use in virtualdataset libraries, based on apache commons math 4

There is a newer version: 2.12.15
Show newest version
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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy