cdac.medinfo.sdk.hl7282.utils

## Class MultiValuedPairedCollection.CollectionIterator

- java.lang.Object
- - cdac.medinfo.sdk.hl7282.utils.MultiValuedPairedCollection.CollectionIterator

- All Implemented Interfaces:
    ICollectionIterator<T2>, java.util.Iterator<T2>
  Enclosing class:
    MultiValuedPairedCollection<T1,T2>

      public class MultiValuedPairedCollection.CollectionIterator
      extends java.lang.Object
      implements ICollectionIterator<T2>

  This inner class works as an Iterator which helps iterating over the map contained in Message or Group This iterator enables you to traverse through a collection This class is implemented such that the programmer can have any object stored in it he/she wants and having ITag as its key.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MultiValuedPairedCollection.CollectionIterator()` Constructs an Iterator over underlying collection

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `hasNext()` Gives the status whether collection contains more element.
    `T2` | `next()` Gives the next element from collection.
    `void` | `remove()` Removes the element from collection.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### MultiValuedPairedCollection.CollectionIterator

          public MultiValuedPairedCollection.CollectionIterator()

      Constructs an Iterator over underlying collection

  - ### Method Detail

    - #### hasNext

          public boolean hasNext()

      Gives the status whether collection contains more element.
      Specified by:
        `hasNext` in interface `ICollectionIterator<T2>`
      Specified by:
        `hasNext` in interface `java.util.Iterator<T2>`
      Returns:
        boolean - status as success or failure.

    - #### next

          public T2 next()

      Gives the next element from collection.
      Specified by:
        `next` in interface `ICollectionIterator<T2>`
      Specified by:
        `next` in interface `java.util.Iterator<T2>`
      Returns:
        T2 - generic type object.

    - #### remove

          public void remove()

      Removes the element from collection.
      Specified by:
        `remove` in interface `ICollectionIterator<T2>`
      Specified by:
        `remove` in interface `java.util.Iterator<T2>`