Package com.enonic.xp.content

## Class ContentIds

- java.lang.Object
- - com.enonic.xp.support.AbstractImmutableEntitySet<ContentId>
  - - com.enonic.xp.content.ContentIds

- All Implemented Interfaces:
    `Iterable<ContentId>`

      @PublicApi
      public final class ContentIds
      extends AbstractImmutableEntitySet<ContentId>

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `static class` | `ContentIds.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
    --- | --- | ---
    `Set<String>` | `asStrings()` | Deprecated.
    `static ContentIds.Builder` | `create()` |
    `static ContentIds` | `empty()` |
    `static ContentIds` | `from​(ContentId... ids)` |
    `static ContentIds` | `from​(Iterable<ContentId> ids)` |
    `static ContentIds` | `from​(String... ids)` |
    `static ContentIds` | `from​(Collection<String> ids)` |

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

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

    - ### 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

    - #### empty

          public static ContentIds empty()

    - #### from

          public static ContentIds from​(ContentId... ids)

    - #### from

          public static ContentIds from​(String... ids)

    - #### from

          public static ContentIds from​(Collection<String> ids)

    - #### from

          public static ContentIds from​(Iterable<ContentId> ids)

    - #### asStrings

          @Deprecated
          public Set<String> asStrings()

      Deprecated.

    - #### create

          public static ContentIds.Builder create()