Added missing Javadoc tags.

This commit is contained in:
Kai S. K. Engelbart 2019-12-31 18:10:45 +02:00
parent b84f05e111
commit caabdaaf41

View File

@ -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");