org.modeshape.common.collection

## Class DelegateIterable<T,V>

- java.lang.Object
- - org.modeshape.common.collection.DelegateIterable<T,V>

- Type Parameters:
    `T` - the iterator's type
    `V` - the type of the delegate iterator
  All Implemented Interfaces:
    Iterable<T>

      public class DelegateIterable<T,V>
      extends Object
      implements Iterable<T>

  An iterable that adapts the values returned by a delegate iterable.

- - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `DelegateIterable(Iterable<V> delegate, Function<V,T> converter)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static <T,V> Iterable<T>` | `around(Iterable<V> delegate, Function<V,T> converter)`
    `Iterator<T>` | `iterator()`

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

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

- - ### Constructor Detail

    - #### DelegateIterable

          protected DelegateIterable(Iterable<V> delegate,
                          Function<V,T> converter)

  - ### Method Detail

    - #### around

          public static <T,V> Iterable<T> around(Iterable<V> delegate,
                                 Function<V,T> converter)

    - #### iterator

          public Iterator<T> iterator()

      Specified by:
        `iterator` in interface `Iterable<T>`

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.