> +    *
> +    * @return The options necessary to get the next page of messages.
> +    */
> +   public StreamOptions nextStreamOptions() {
> +      return StreamOptions.class.cast(nextMarker().get());
> +   }
> +
> +   @Override
> +   public Optional<Object> nextMarker() {
> +      for (Link link: getLinks()) {
> +         if (Link.Relation.NEXT == link.getRelation()) {
> +            return Optional.of(toListOptions(link));
> +         }
> +      }
> +
> +      return Optional.absent();

Ah...so close to being able to use 
[`tryFind`](http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/collect/Iterables.html#tryFind\(java.lang.Iterable,
 com.google.common.base.Predicate\))

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/46/files#r7270941

Reply via email to