ELEMENTTYPE - The type of object to iterate.@NotThreadSafe public class SingleElementIterator<ELEMENTTYPE> extends Object implements Iterator<ELEMENTTYPE>
| Constructor and Description |
|---|
SingleElementIterator(ELEMENTTYPE aElement) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
hasNext() |
ELEMENTTYPE |
next() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEachRemaining, removepublic SingleElementIterator(@Nullable ELEMENTTYPE aElement)
public boolean hasNext()
hasNext in interface Iterator<ELEMENTTYPE>@Nullable public ELEMENTTYPE next()
next in interface Iterator<ELEMENTTYPE>Copyright © 2017–2020 Philip Helger. All rights reserved.