Interface JCoFieldIterator

All Known Subinterfaces:
JCoParameterFieldIterator, JCoRecordFieldIterator

public interface JCoFieldIterator
Encapsulates an iterator for the fields of a record.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Tests if this iterator would return another field, when invoking nextField().
    boolean
    Tests if this iterator would return another field, when invoking previousField().
    Returns the next field of the record.
    Returns the previous field of the record.
    void
    Resets the iterator.
  • Method Details

    • 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.