|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jasig.cas.util.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(boolean wrap)
|
|
DefaultLongNumericGenerator(long initialValue)
|
|
DefaultLongNumericGenerator(long initialValue,
boolean wrap)
|
|
| 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(boolean wrap)
public DefaultLongNumericGenerator(long initialValue,
boolean wrap)
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()
java.lang.IllegalStateException - if the maximum value is reached and
wrapping is not allowed.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||