Skip to content

Instantly share code, notes, and snippets.

@dariosalvi78
Created June 27, 2014 08:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dariosalvi78/caba434a30ee6c7dcb1c to your computer and use it in GitHub Desktop.
Save dariosalvi78/caba434a30ee6c7dcb1c to your computer and use it in GitHub Desktop.
public class ReflectableIterator<T> implements org.dt.reflector.Reflectable{
ArrayList<T> list = new ArrayList<T>();
int pointer = 0;
public boolean getHasNext(){
if(pointer <list.size())
return true;
else return false;
}
public void setHasNext(boolean b){
}
public T getNext(){
return list.get(pointer);
}
public void setNext(T t){
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment