T - Type of iterable objectspublic final class Smarts<T> extends Object implements Iterable<T>
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());
}public Smarts(@NotNull(message="items can\'t be NULL")
Iterable<?> items)
items - Items originalCopyright © 2012–2014 jcabi.com. All rights reserved.