< prev index next >

src/java.base/share/classes/java/util/Enumeration.java

Print this page

        

*** 21,31 **** * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ ! package java.util; /** * An object that implements the Enumeration interface generates a * series of elements, one at a time. Successive calls to the * <code>nextElement</code> method return successive elements of the --- 21,31 ---- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ ! package javany.util; /** * An object that implements the Enumeration interface generates a * series of elements, one at a time. Successive calls to the * <code>nextElement</code> method return successive elements of the
*** 56,66 **** * @see java.util.Vector#elements() * * @author Lee Boynton * @since 1.0 */ ! public interface Enumeration<E> { /** * Tests if this enumeration contains more elements. * * @return <code>true</code> if and only if this enumeration object * contains at least one more element to provide; --- 56,66 ---- * @see java.util.Vector#elements() * * @author Lee Boynton * @since 1.0 */ ! public interface Enumeration<any E> { /** * Tests if this enumeration contains more elements. * * @return <code>true</code> if and only if this enumeration object * contains at least one more element to provide;
*** 71,79 **** /** * Returns the next element of this enumeration if this enumeration * object has at least one more element to provide. * * @return the next element of this enumeration. ! * @exception NoSuchElementException if no more elements exist. */ E nextElement(); } --- 71,79 ---- /** * Returns the next element of this enumeration if this enumeration * object has at least one more element to provide. * * @return the next element of this enumeration. ! * @exception java.util.NoSuchElementException if no more elements exist. */ E nextElement(); }
< prev index next >