IdentifierGeneratorFactory factory =
IdentifierGeneratorFactory.newInstance();
LongIdentifierGenerator idGenerator = factory.longGenerator(false, 0);
System.out.println( idGenerator.nextLongIdentifier() );
System.out.println( idGenerator.nextLongIdentifier() );
System.out.println( idGenerator.nextLongIdentifier() );
System.out.println( idGenerator.nextLongIdentifier() );
System.out.println( idGenerator.nextLongIdentifier() );
StringIdentifierGenerator alphaNumericGenerator = factory.alphanumericGenerator(false, 4);
System.out.println( alphaNumericGenerator.nextStringIdentifier() );
System.out.println( alphaNumericGenerator.nextStringIdentifier() );
System.out.println( alphaNumericGenerator.nextStringIdentifier() );
System.out.println( alphaNumericGenerator.nextStringIdentifier() );
System.out.println( alphaNumericGenerator.nextStringIdentifier() );
System.out.println( alphaNumericGenerator.nextStringIdentifier() );