org.eaglei.repository.rid
Class RIDSequence

java.lang.Object
  extended by org.eaglei.repository.rid.RIDSequence
All Implemented Interfaces:
java.util.Iterator<java.util.UUID>

public class RIDSequence
extends java.lang.Object
implements java.util.Iterator<java.util.UUID>


Constructor Summary
RIDSequence(long timeValue, long clockIDValue, int startValue, int amountValue)
          Constructor for RIDSequence.
 
Method Summary
 boolean hasNext()
          hasNext
 java.util.UUID next()
          next
 void remove()
          remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RIDSequence

public RIDSequence(long timeValue,
                   long clockIDValue,
                   int startValue,
                   int amountValue)

Constructor for RIDSequence.

Parameters:
timeValue - a long.
clockIDValue - a long.
startValue - a int.
amountValue - a int.
Method Detail

next

public java.util.UUID next()

next

Specified by:
next in interface java.util.Iterator<java.util.UUID>
Returns:
a UUID object.

hasNext

public boolean hasNext()

hasNext

Specified by:
hasNext in interface java.util.Iterator<java.util.UUID>
Returns:
a boolean.

remove

public void remove()
            throws java.lang.UnsupportedOperationException

remove

Specified by:
remove in interface java.util.Iterator<java.util.UUID>
Throws:
java.lang.UnsupportedOperationException - if any.


Copyright © 2009-2011 Eagle-I. All Rights Reserved.