Package com.jcabi.github
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
- Version:
- $Id: e5020bb4c1f540ce4037ffd81eefcc00981475a5 $
- Author:
- Yegor Bugayenko (yegor256@gmail.com)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<T>
iterator()
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-