io.vertx.core.spi.cluster

## Interface ChoosableIterable<T>

- All Superinterfaces:
    Iterable<T>

      public interface ChoosableIterable<T>
      extends Iterable<T>

  An extension of Iterable which allows keeps track of an iterator internally to allow the next element to be chosen
  Author:
    Tim Fox

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `T` | `choose()` Return the next element T in a round robin fashion.
    `boolean` | `isEmpty()` Is it empty?

    - ### Methods inherited from interface java.lang.Iterable

      `forEach, iterator, spliterator`

- - ### Method Detail

    - #### isEmpty

          boolean isEmpty()

      Is it empty?

    - #### choose

          T choose()

      Return the next element T in a round robin fashion. The implementation should internally maintain some state which allows the next element to be returned
      Returns:
        The next element

Copyright © 2016. All rights reserved.