com.ihr.xbrl.util

## Class GeneralIterable<T>

- java.lang.Object
- - com.ihr.xbrl.util.GeneralIterable<T>

- Type Parameters:
    `T` - the generic type
  All Implemented Interfaces:
    java.lang.Iterable<T>

      public class GeneralIterable<T>
      extends java.lang.Object
      implements java.lang.Iterable<T>

  The Class GeneralIterable.
  Author:
    Ignacio

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `GeneralIterable(java.util.Iterator<T> surroundingIterator)` Instantiates a new general iterable.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static <T> java.lang.Iterable<T>` | `asIterator(java.util.Iterator<T> a)` Helper to create instances of this class as new GeneralIterable(...) where ... is an iterator of any type
    `java.util.Iterator<T>` | `iterator()`

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

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

- - ### Constructor Detail

    - #### GeneralIterable

          public GeneralIterable(java.util.Iterator<T> surroundingIterator)

      Instantiates a new general iterable.
      Parameters:
        `surroundingIterator` - the surrounding iterator

  - ### Method Detail

    - #### iterator

          public java.util.Iterator<T> iterator()

      Specified by:
        `iterator` in interface `java.lang.Iterable<T>`

    - #### asIterator

          public static <T> java.lang.Iterable<T> asIterator(java.util.Iterator<T> a)

      Helper to create instances of this class as new GeneralIterable(...) where ... is an iterator of any type
      Type Parameters:
        `T` - the generic type
      Parameters:
        `a` - the a
      Returns:
        the iterable