Class OptionalIterable<T>
java.lang.Object
com.atlassian.jira.rest.client.api.OptionalIterable<T>
- All Implemented Interfaces:
Iterable<T>
Represent iterable which is optional (for example due to lack of field in old REST API version).
This iterable is intended to be not null, so you can always get items by using iterator. If you need
to check if value was actually provided then use isSupported().
- Since:
- v1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> OptionalIterable<T> absent()booleaniterator()toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
OptionalIterable
-
-
Method Details