Class Smarts<T>

  • Type Parameters:
    T - Type of iterable objects
    All Implemented Interfaces:
    Iterable<T>

    public final class Smarts<T>
    extends Object
    implements Iterable<T>
    Smart items.

    This class should be used as a decorator for an iterable of objects, for example:

     Iterable<Issue.Smart> issues = new Smarts<Issue.Smart>(
       repo.issues().iterate(
         new HashMap<String, String>()
       )
     );
     for (Issue.Smart issue : issues) {
         System.out.println("state is: " + issue.state());
     }
    Since:
    0.5
    Version:
    $Id: 12e3846fc17ae13327a35d3ef03281dbef64c34e $
    Author:
    Yegor Bugayenko ([email protected])