|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.cas.util.DefaultLongNumericGenerator
public final class DefaultLongNumericGenerator
The default numeric generator for generating long values. Implementation allows for wrapping (to restart count) if the maximum is reached.
| Constructor Summary | |
|---|---|
DefaultLongNumericGenerator()
|
|
DefaultLongNumericGenerator(long initialValue)
|
|
| Method Summary | |
|---|---|
long |
getNextLong()
Get the next long in the sequence. |
java.lang.String |
getNextNumberAsString()
Method to retrieve the next number as a String. |
protected long |
getNextValue()
|
int |
maxLength()
The guaranteed maximum length of a String returned by this generator. |
int |
minLength()
The guaranteed minimum length of a String returned by this generator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultLongNumericGenerator()
public DefaultLongNumericGenerator(long initialValue)
| Method Detail |
|---|
public long getNextLong()
LongNumericGenerator
getNextLong in interface LongNumericGeneratorpublic java.lang.String getNextNumberAsString()
NumericGenerator
getNextNumberAsString in interface NumericGeneratorpublic int maxLength()
NumericGenerator
maxLength in interface NumericGeneratorpublic int minLength()
NumericGenerator
minLength in interface NumericGeneratorprotected long getNextValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||