Added missing Javadoc tags.
This commit is contained in:
parent
7567452e35
commit
c56a0766b3
@ -20,6 +20,7 @@ public class MessageIdGenerator {
|
|||||||
*
|
*
|
||||||
* @param begin the first ID
|
* @param begin the first ID
|
||||||
* @param end the last ID
|
* @param end the last ID
|
||||||
|
* @since Envoy Common v0.2-alpha
|
||||||
*/
|
*/
|
||||||
public MessageIdGenerator(long begin, long end) {
|
public MessageIdGenerator(long begin, long end) {
|
||||||
current = begin;
|
current = begin;
|
||||||
@ -28,11 +29,13 @@ public class MessageIdGenerator {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {@code true} if there are unused IDs remaining
|
* @return {@code true} if there are unused IDs remaining
|
||||||
|
* @since Envoy Common v0.2-alpha
|
||||||
*/
|
*/
|
||||||
public boolean hasNext() { return current < end; }
|
public boolean hasNext() { return current < end; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the next ID
|
* @return the next ID
|
||||||
|
* @since Envoy Common v0.2-alpha
|
||||||
*/
|
*/
|
||||||
public long next() {
|
public long next() {
|
||||||
if (!hasNext()) throw new IllegalStateException("All IDs have been used");
|
if (!hasNext()) throw new IllegalStateException("All IDs have been used");
|
||||||
|
Reference in New Issue
Block a user