equal
deleted
inserted
replaced
1011 /** |
1011 /** |
1012 * Tests if this enumeration contains more elements. |
1012 * Tests if this enumeration contains more elements. |
1013 * |
1013 * |
1014 * @return <code>true</code> if this enumeration contains more elements; |
1014 * @return <code>true</code> if this enumeration contains more elements; |
1015 * <code>false</code> otherwise. |
1015 * <code>false</code> otherwise. |
1016 * @since JDK1.0 |
1016 * @since 1.0 |
1017 */ |
1017 */ |
1018 public boolean hasMoreElements() { |
1018 public boolean hasMoreElements() { |
1019 return i < attr.length; |
1019 return i < attr.length; |
1020 } |
1020 } |
1021 |
1021 |
1022 /** |
1022 /** |
1023 * Returns the next element of this enumeration. |
1023 * Returns the next element of this enumeration. |
1024 * |
1024 * |
1025 * @return the next element of this enumeration. |
1025 * @return the next element of this enumeration. |
1026 * @exception NoSuchElementException if no more elements exist. |
1026 * @exception NoSuchElementException if no more elements exist. |
1027 * @since JDK1.0 |
1027 * @since 1.0 |
1028 */ |
1028 */ |
1029 public Object nextElement() { |
1029 public Object nextElement() { |
1030 if (i < attr.length) { |
1030 if (i < attr.length) { |
1031 Object o = attr[i]; |
1031 Object o = attr[i]; |
1032 i += 2; |
1032 i += 2; |