
com.fimet.exe.stress.StressIteratorSingle Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fimet-exe Show documentation
Show all versions of fimet-exe Show documentation
Execution implementarion of usecases and stress test for ISO8583
The newest version!
package com.fimet.exe.stress;
import java.io.File;
import java.util.Iterator;
import com.fimet.stress.Stress;
import com.fimet.utils.StressUtils;
public class StressIteratorSingle implements Iterator {
Stress stress;
File folder;
public StressIteratorSingle(Stress stress, File folder) {
this.folder = folder;
this.stress = stress;
}
public StressIteratorSingle(File file, File folder) {
this.folder = folder;
stress = (Stress)StressUtils.fromFile(file, folder);
}
@Override
public boolean hasNext() {
return stress!=null;
}
@Override
public Stress next() {
Stress next = stress;
stress = null;
return next;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy