home *** CD-ROM | disk | FTP | other *** search
Java Source | 1996-09-10 | 1.0 KB | 49 lines |
- // Copyright(c) 1996 ObjectSpace, Inc.
- // Portions Copyright(c) 1995, 1996 Hewlett-Packard Company.
-
- package jgl;
-
- import java.util.Enumeration;
-
- /**
- * ForwardIterator is the interface of all iterators that can
- * read and/or write one item at a time in a forward direction.
- * <p>
- * @version 1.1
- * @author ObjectSpace, Inc.
- */
-
- public interface ForwardIterator extends InputIterator, OutputIterator
- {
- /**
- * Advance by one.
- */
- public void advance();
-
- /**
- * Advance by a specified amount.
- * @param n The amount to advance.
- */
- public void advance( int n );
-
- /**
- * Return the distance from myself to another iterator.
- * I should be before the specified iterator.
- * @param iterator The iterator to compare myself against.
- */
- public int distance( ForwardIterator iterator );
-
- /**
- * Return a clone of myself.
- */
- public Object clone();
-
- /**
- * Return my associated container.
- */
- public Container getContainer();
- }
-
-
-
-