jdk/src/share/classes/javax/swing/text/StyleContext.java
changeset 24865 09b1d992ca72
parent 22574 7f8ce0c8c20a
child 25200 360a141ded8f
equal deleted inserted replaced
24864:a7bf63ebda64 24865:09b1d992ca72
  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;