package dk.itu.oop.lecture5; public interface OOPIterator extends Cloneable{ /* pre: none * post: return true if the iterator is not empty. */ public boolean hasNext(); /* pre: hasNext() * post: return head of iterator; this is now tail. */ public Object next(); /* pre: hasNext() * post: return head of iterator; do not change this */ public Object peek(); /* pre: none * post: return a iterator which is equal to this */ public OOPIterator cloneMe(); }