Class Smarts<T>

java.lang.Object
com.jcabi.github.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
  • Constructor Details

    • Smarts

      public Smarts(Iterable<?> items)
      Public ctor.
      Parameters:
      items - Items original
  • Method Details