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

io.rainfall.utils.NullSequenceGenerator Maven / Gradle / Ivy

There is a newer version: 1.6.10
Show newest version
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