TimeIterator<V>
public final class SingletonTimeIterator<V> extends Object implements TimeIterator<V>
Constructor | Description |
---|---|
SingletonTimeIterator(Sample<V> value) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
hasNext() |
Test if there is a next element.
|
Sample<V> |
next() |
Move forward the iterator and return the next value.
|
Sample<V> |
peekNext() |
Peek the next element without moving forward the iterator.
|
public Sample<V> next() throws NoSuchElementException
TimeIterator
next
in interface TimeIterator<V>
NoSuchElementException
- If there is no next elementpublic Sample<V> peekNext() throws NoSuchElementException
TimeIterator
peekNext
in interface TimeIterator<V>
NoSuchElementException
- If there is no next elementpublic boolean hasNext()
TimeIterator
hasNext
in interface TimeIterator<V>
Copyright © 2019. All rights reserved.