Package com.enonic.xp.repository

## Class Repositories

- java.lang.Object
- - com.enonic.xp.support.AbstractImmutableEntitySet<Repository>
  - - com.enonic.xp.repository.Repositories

- All Implemented Interfaces:
    `Iterable<Repository>`

      @PublicApi
      public final class Repositories
      extends AbstractImmutableEntitySet<Repository>

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `static class` | `Repositories.Builder` |

  - ### Field Summary

    - ### Fields inherited from class com.enonic.xp.support.AbstractImmutableEntitySet

      `set`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static Repositories.Builder` | `create()` |
    `static Repositories` | `empty()` |
    `static Repositories` | `from​(Repository... repositorys)` |
    `static Repositories` | `from​(Iterable<? extends Repository> repositorys)` |
    `static Repositories` | `from​(Collection<? extends Repository> repositorys)` |
    `RepositoryIds` | `getIds()` |
    `Repository` | `getRepositoryById​(RepositoryId repositoryId)` | Deprecated.
    `String` | `toString()` |

    - ### Methods inherited from class com.enonic.xp.support.AbstractImmutableEntitySet

      `contains, equals, first, getSet, getSize, hashCode, isEmpty, isNotEmpty, iterator, stream`

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

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

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

      `forEach, spliterator`

- - ### Method Detail

    - #### getIds

          public RepositoryIds getIds()

    - #### getRepositoryById

          @Deprecated
          public Repository getRepositoryById​(RepositoryId repositoryId)

      Deprecated.

    - #### empty

          public static Repositories empty()

    - #### from

          public static Repositories from​(Repository... repositorys)

    - #### from

          public static Repositories from​(Iterable<? extends Repository> repositorys)

    - #### from

          public static Repositories from​(Collection<? extends Repository> repositorys)

    - #### create

          public static Repositories.Builder create()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `AbstractImmutableEntitySet<Repository>`