
com.fimet.exe.usecase.UseCaseIteratorSingle 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.usecase;
import java.io.File;
import java.util.Iterator;
import com.fimet.usecase.UseCase;
import com.fimet.utils.UseCaseUtils;
public class UseCaseIteratorSingle implements Iterator {
private UseCase useCase;
public UseCaseIteratorSingle(UseCase useCase) {
this.useCase = useCase;
}
public UseCaseIteratorSingle(File file) {
useCase = (UseCase)UseCaseUtils.fromFile(file);
}
@Override
public boolean hasNext() {
return useCase!=null;
}
@Override
public UseCase next() {
UseCase next = useCase;
useCase = null;
return next;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy