public static class InputInterval.Segment extends Object implements CycleSegment
| Constructor and Description |
|---|
Segment(long start,
long afterEnd) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isExhausted() |
long |
nextCycle()
The next cycle, which should be a positive number between 0 and Long.MAX_VALUE.
|
long |
peekNextCycle() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitnextCyclespublic long nextCycle()
CycleSegmentImplementations of this method should not worry about thread safety.
nextCycle in interface CycleSegmentpublic long peekNextCycle()
peekNextCycle in interface CycleSegmentpublic boolean isExhausted()
isExhausted in interface CycleSegmentCopyright © 2018. All rights reserved.