18#ifndef _DECAF_UTIL_LISTITERATOR_H_
19#define _DECAF_UTIL_LISTITERATOR_H_
62 virtual void add(
const E& e) = 0;
82 virtual void set(
const E& e) = 0;
Defines an object that can be used to iterate over the elements of a collection.
Definition Iterator.h:34
An iterator for lists that allows the programmer to traverse the list in either direction,...
Definition ListIterator.h:38
virtual void set(const E &e)=0
Replaces the last element returned by next or previous with the specified element (optional operation...
virtual ~ListIterator()
Definition ListIterator.h:41
virtual int nextIndex() const =0
Returns the index of the element that would be returned by a subsequent call to next.
virtual bool hasPrevious() const =0
Returns true if this list iterator has more elements when traversing the list in the reverse directio...
virtual E previous()=0
Returns the previous element in the list.
virtual void add(const E &e)=0
Inserts the specified element into the list (optional operation).
virtual int previousIndex() const =0
Returns the index of the element that would be returned by a subsequent call to previous.
Definition AbstractCollection.h:33
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition AprPool.h:25