diff options
author | Mark Wielaard <mark@klomp.org> | 2001-02-18 15:39:58 +0000 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2001-02-18 15:39:58 +0000 |
commit | 4d03f9cf8e0df51d053863d2919f10bbe76d7636 (patch) | |
tree | 4d6cb48a1b95d8fafc236746b4f03486c917755d /java/util/Enumeration.java | |
parent | 18d47441f6e9d28e772982c02bbf04a810f47fa7 (diff) | |
download | classpath-4d03f9cf8e0df51d053863d2919f10bbe76d7636.tar.gz |
* java/util/ArrayList.java: Remove RCS keywords from comments
* java/util/BasicMapEntry.java: idem
* java/util/Dictionary.java: idem
* java/util/HashMap.java: idem
* java/util/HashSet.java: idem
* java/util/Hashtable.java: idem
* java/util/TreeMap.java: idem
* java/util/TreeSet.java: idem
* java/util/Collection.java: reindent
* java/util/ConcurrentModificationException.java: merge with libgcj
* java/util/EmptyStackException.java: idem
* java/util/Enumeration.java: idem
* java/util/EventListener.java: idem
* java/util/MissingResourceException.java: idem
* java/util/NoSuchElementException.java: idem
* java/util/Observable.java: idem
* java/util/Observer.java: idem
* java/util/Stack.java: idem
* java/util/TooManyListenersException.java: idem
* java/util/DoubleEnumeration.java: removed
* java/util/PropertyResourceBundle.java:
import gnu.java.util.DoubleEnumeration
Diffstat (limited to 'java/util/Enumeration.java')
-rw-r--r-- | java/util/Enumeration.java | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/java/util/Enumeration.java b/java/util/Enumeration.java index 37aefe0e7..66624bd3a 100644 --- a/java/util/Enumeration.java +++ b/java/util/Enumeration.java @@ -1,5 +1,5 @@ /* Enumeration.java -- Interface for enumerating lists of objects - Copyright (C) 1998 Free Software Foundation, Inc. + Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -24,18 +24,25 @@ resulting executable to be covered by the GNU General Public License. This exception does not however invalidate any other reasons why the executable file might be covered by the GNU General Public License. */ - package java.util; +/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3 + * "The Java Language Specification", ISBN 0-201-63451-1. + * Status: Believed complete and correct + */ + /** * Interface for lists of objects that can be returned in sequence. Successive * objects are obtained by the nextElement method. - * <P> + * <p> * As of Java 1.2, the Iterator interface provides the same functionality, but * with shorter method names and a new optional method to remove items from the * list. If writing for 1.2, consider using Iterator instead. Enumerations over * the new collections classes, for use with legacy APIs that require them, can * be obtained by the enumeration method in class Collections. + * + * @author Warren Levy <warrenl@cygnus.com> + * @date August 25, 1998. */ public interface Enumeration { @@ -54,5 +61,5 @@ public interface Enumeration * @return the next element in the enumeration * @exception NoSuchElementException if there are no more elements */ - Object nextElement(); + Object nextElement() throws NoSuchElementException; } |