cdac.medinfo.sdk.hl7282.commoninterface

## Interface ICollectionIterator<T>

- Type Parameters:
    `T` - - object of the type on which the user wants to iterate.
  All Superinterfaces:
    java.util.Iterator<T>
  All Known Implementing Classes:
    MultiValuedPairedCollection.CollectionIterator, MultiValuedPairedCollection.SortedIterator, PairedCollection.CollectionIterator

      public interface ICollectionIterator<T>
      extends java.util.Iterator<T>

  Provides the contract that the implementer collection should follow.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `hasNext()` Checks whether the collection contains more elements.
    `T` | `next()` Returns the next element in the iteration.
    `void` | `remove()` Removes from the underlying collection the last element returned by the iterator.

- - ### Method Detail

    - #### hasNext

          boolean hasNext()

      Checks whether the collection contains more elements.
      Specified by:
        `hasNext` in interface `java.util.Iterator<T>`
      Returns:
        boolean - true if the iteration has more elements.

    - #### next

          T next()

      Returns the next element in the iteration.
      Specified by:
        `next` in interface `java.util.Iterator<T>`
      Returns:
        T - object specified at the time of instantiation of the implementer class.

    - #### remove

          void remove()

      Removes from the underlying collection the last element returned by the iterator.
      Specified by:
        `remove` in interface `java.util.Iterator<T>`