io.rainfall.utils.NullSequenceGenerator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rainfall-core Show documentation
Show all versions of rainfall-core Show documentation
Rainfall-core is the core of the Rainfall framework
package io.rainfall.utils;
import io.rainfall.SequenceGenerator;
/**
* @author Aurelien Broszniowski
*/
public class NullSequenceGenerator implements SequenceGenerator {
@Override
public long next() {
throw new IllegalStateException("You must define a SequenceGenerator.");
}
@Override
public String getDescription() {
return "No sequence generator defined yet";
}
public static SequenceGenerator instance() {
return new NullSequenceGenerator();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy