Package com.enonic.xp.cluster

## Class Clusters

- java.lang.Object
- - com.enonic.xp.cluster.Clusters

- All Implemented Interfaces:
    `Iterable<Cluster>`

      public class Clusters
      extends Object
      implements Iterable<Cluster>

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `Clusters​(List<ClusterId> requiredClusters)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `add​(Cluster cluster)` |
    `boolean` | `hasRequiredProviders()` |
    `Iterator<Cluster>` | `iterator()` |
    `boolean` | `remove​(Cluster cluster)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

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

      `forEach, spliterator`

- - ### Constructor Detail

    - #### Clusters

          public Clusters​(List<ClusterId> requiredClusters)

  - ### Method Detail

    - #### hasRequiredProviders

          public boolean hasRequiredProviders()

    - #### iterator

          public Iterator<Cluster> iterator()

      Specified by:
        `iterator` in interface `Iterable<Cluster>`

    - #### add

          public void add​(Cluster cluster)

    - #### remove

          public boolean remove​(Cluster cluster)