Package com.enonic.xp.descriptor

## Class Descriptors<T extends Descriptor>

- java.lang.Object
- - com.enonic.xp.support.AbstractImmutableEntityList<T>
  - - com.enonic.xp.descriptor.Descriptors<T>

- All Implemented Interfaces:
    `Iterable<T>`

      public final class Descriptors<T extends Descriptor>
      extends AbstractImmutableEntityList<T>

- - ### Field Summary

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

      `list`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static <T extends Descriptor> Descriptors<T>` | `empty()` |
    `Descriptors<T>` | `filter​(ApplicationKey key)` |
    `Descriptors<T>` | `filter​(Predicate<T> predicate)` |
    `static <T extends Descriptor> Descriptors<T>` | `from​(Iterable<? extends T> descriptors)` |
    `static <T extends Descriptor> Descriptors<T>` | `from​(T... descriptors)` |

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

      `contains, equals, first, get, getList, getSize, hashCode, isEmpty, isNotEmpty, iterator, last, 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

    - #### filter

          public Descriptors<T> filter​(ApplicationKey key)

    - #### filter

          public Descriptors<T> filter​(Predicate<T> predicate)

    - #### empty

          public static <T extends Descriptor> Descriptors<T> empty()

    - #### from

          @SafeVarargs
          public static <T extends Descriptor> Descriptors<T> from​(T... descriptors)

    - #### from

          public static <T extends Descriptor> Descriptors<T> from​(Iterable<? extends T> descriptors)