org.apache.commons.id
Interface LongIdentifierGenerator

All Superinterfaces:
IdentifierGenerator
All Known Implementing Classes:
AbstractLongIdentifierGenerator, LongGenerator

public interface LongIdentifierGenerator
extends IdentifierGenerator

LongIdentifier defines a simple interface for Long based identifier generation.

Version:
$Id: LongIdentifierGenerator.java 480488 2006-11-29 08:57:26Z bayard $
Author:
Commons-Id team

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.Long nextLongIdentifier()
          Gets the next identifier in the sequence.
 
Methods inherited from interface org.apache.commons.id.IdentifierGenerator
nextIdentifier
 

Method Detail

nextLongIdentifier

java.lang.Long nextLongIdentifier()
Gets the next identifier in the sequence.

Returns:
the next Long identifier in sequence

maxValue

long maxValue()
Returns the maximum value of an identifier from this generator.

Returns:
the maximum identifier value

minValue

long minValue()
Returns the minimum value of an identifier from this generator.

Returns:
the minimum identifier value


Copyright © 2003-2008 The Apache Software Foundation. All Rights Reserved.