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

de.invation.code.toval.misc.valuegeneration.ValueGenerator Maven / Gradle / Ivy

package de.invation.code.toval.misc.valuegeneration;

import de.invation.code.toval.validate.InconsistencyException;


/**
 * Interface for value generators.
* A value generator produces values of a specific type and returns it by the method {@link #getNextValue()}. * Value generation is only permitted if the generator is in a valid state.
* Once entered a valid state, the generator cannot enter an invalid state again.
* If value generations are requested in invalid state, * Exceptions of type {@link ValueGenerationException} are thrown. * * @param */ public interface ValueGenerator { public E getNextValue() throws ValueGenerationException; public boolean isValid(); @SuppressWarnings("rawtypes") public Class getValueClass() throws InconsistencyException; public boolean isEmpty(); public ValueGenerator clone(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy