com.sap.conn.jco

## Interface JCoFieldIterator

- All Known Subinterfaces:
    JCoParameterFieldIterator, JCoRecordFieldIterator

      public interface JCoFieldIterator

  Encapsulates an iterator for the fields of a record.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `hasNextField()` Tests if this iterator would return another field, when invoking nextField().
    `boolean` | `hasPreviousField()` Tests if this iterator would return another field, when invoking previousField().
    `JCoField` | `nextField()` Returns the next field of the record.
    `JCoField` | `previousField()` Returns the previous field of the record.
    `void` | `reset()` Resets the iterator.

- - ### Method Detail

    - #### reset

          void reset()

      Resets the iterator.

    - #### hasNextField

          boolean hasNextField()

      Tests if this iterator would return another field, when invoking nextField().
      Returns:
        `true` if nextField() would return another field; `false` otherwise.

    - #### hasPreviousField

          boolean hasPreviousField()

      Tests if this iterator would return another field, when invoking previousField().
      Returns:
        `true` if previousField() would return another field; `false` otherwise.

    - #### nextField

          JCoField nextField()

      Returns the next field of the record.
      Returns:
        the next field of the record.
      Throws:
        `NoSuchElementException` - if no previous field exist.

    - #### previousField

          JCoField previousField()

      Returns the previous field of the record.
      Returns:
        the previous field of the record.
      Throws:
        `NoSuchElementException` - if no next exist.

Copyright © 2016 SAP. All Rights Reserved.