|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.data.DelegatingIterator<T>
public class DelegatingIterator<T>
A delegating wrapper implementation of Iterator. Useful for when you want to layer other functionality or translate on the fly.
Copyright 2009 Partner Software, Inc.
| Field Summary | |
|---|---|
protected T |
currentValue
|
protected java.util.Iterator<T> |
delegate
|
| Constructor Summary | |
|---|---|
DelegatingIterator(java.util.Iterator<T> delegate)
|
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
T |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Iterator<T> delegate
protected T currentValue
| Constructor Detail |
|---|
public DelegatingIterator(java.util.Iterator<T> delegate)
| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.Iterator<T>public T next()
next in interface java.util.Iterator<T>public void remove()
remove in interface java.util.Iterator<T>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||