Ignore:
Timestamp:
2003-05-27T15:40:47+12:00 (21 years ago)
Author:
mdewsnip
Message:

Fixed tabbing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/util/EnumeratedVector.java

    r4293 r4364  
    5050 */
    5151public class EnumeratedVector
    52     extends Vector
    53     implements Enumeration {
    54     /** The current index into our enumerated vector. */
    55     private int index = 0;
    56     /** Can we call nextElement() without running out of entries in the vector.
    57       * @return <i>true</i> if there are elements remaining, <i>false</i> otherwise.
     52    extends Vector
     53    implements Enumeration {
     54    /** The current index into our enumerated vector. */
     55    private int index = 0;
     56    /** Can we call nextElement() without running out of entries in the vector.
     57     * @return <i>true</i> if there are elements remaining, <i>false</i> otherwise.
    5858      */
    59     public boolean hasMoreElements() {
    60           return (index < size());
    61     }
    62     /** Retrieve the next element indicated by the current index.
     59    public boolean hasMoreElements() {
     60    return (index < size());
     61    }
     62    /** Retrieve the next element indicated by the current index.
    6363      * @return The next element as an <strong>Object</strong>.
    6464      */
    65     public Object nextElement() {
    66           Object object = null;
    67           if(index < size()) {
    68                 object = get(index);
    69                 index++;
    70           }
    71           return object;
    72    
     65    public Object nextElement() {
     66    Object object = null;
     67    if(index < size()) {
     68        object = get(index);
     69        index++;
     70    }
     71    return object;
     72   
    7373}
Note: See TracChangeset for help on using the changeset viewer.