Package org.apereo.cas.util.gen
Interface NumericGenerator
-
- All Known Subinterfaces:
LongNumericGenerator
- All Known Implementing Classes:
DefaultLongNumericGenerator
public interface NumericGeneratorInterface to return a new sequential number for each call.- Since:
- 3.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetNextNumberAsString()Method to retrieve the next number as a String.intmaxLength()The guaranteed maximum length of a String returned by this generator.intminLength()The guaranteed minimum length of a String returned by this generator.
-
-
-
Method Detail
-
getNextNumberAsString
java.lang.String getNextNumberAsString()
Method to retrieve the next number as a String.- Returns:
- the String representation of the next number in the sequence
-
maxLength
int maxLength()
The guaranteed maximum length of a String returned by this generator.- Returns:
- the maximum length
-
minLength
int minLength()
The guaranteed minimum length of a String returned by this generator.- Returns:
- the minimum length.
-
-