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: e5020bb4c1f540ce4037ffd81eefcc00981475a5 $
    Author:
    Yegor Bugayenko (yegor256@gmail.com)