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>
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