ELEMENTTYPE - The type of object to iterate.@Immutable public class SingleElementIterator<ELEMENTTYPE> extends Object implements Iterator<ELEMENTTYPE>
| Constructor and Description |
|---|
SingleElementIterator(ELEMENTTYPE aElement) |
| Modifier and Type | Method and Description |
|---|---|
static <T> Iterator<T> |
create(T aElement) |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
hasNext() |
ELEMENTTYPE |
next() |
void |
remove() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEachRemainingpublic SingleElementIterator(@Nullable ELEMENTTYPE aElement)
public boolean hasNext()
hasNext in interface Iterator<ELEMENTTYPE>@Nullable public ELEMENTTYPE next()
next in interface Iterator<ELEMENTTYPE>@UnsupportedOperation public void remove()
remove in interface Iterator<ELEMENTTYPE>Copyright © 2014–2015 Philip Helger. All rights reserved.