|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.id.AbstractLongIdentifierGenerator
public abstract class AbstractLongIdentifierGenerator
Abstract superclass for LongIdentifierGenerator implementations.
Constructor Summary | |
---|---|
protected |
AbstractLongIdentifierGenerator()
Constructor. |
Method Summary | |
---|---|
long |
maxValue()
Returns the maximum value of an identifier from this generator. |
long |
minValue()
Returns the minimum value of an identifier from this generator. |
java.lang.Object |
nextIdentifier()
Gets the next identifier in the sequence. |
abstract java.lang.Long |
nextLongIdentifier()
Gets the next identifier in the sequence. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractLongIdentifierGenerator()
Method Detail |
---|
public long maxValue()
The default implementation returns Long.MAX_VALUE. Implementations whose identifiers are bounded below Long.MAX_VALUE should override this method to return the maximum value of a generated identifier.
maxValue
in interface LongIdentifierGenerator
public long minValue()
The default implementation returns Long.MIN_VALUE. Implementations whose identifiers are bounded above Long.MIN_VALUE should override this method to return the minimum value of a generated identifier.
minValue
in interface LongIdentifierGenerator
public java.lang.Object nextIdentifier()
IdentifierGenerator
nextIdentifier
in interface IdentifierGenerator
public abstract java.lang.Long nextLongIdentifier()
LongIdentifierGenerator
nextLongIdentifier
in interface LongIdentifierGenerator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |