Package com.enonic.xp.resource

## Class ResourceProcessor.Builder<K,​V>

- java.lang.Object
- - com.enonic.xp.resource.ResourceProcessor.Builder<K,​V>

- Enclosing class:
    ResourceProcessor<K,​V>

      public static final class ResourceProcessor.Builder<K,​V>
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `Builder()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `ResourceProcessor<K,​V>` | `build()` |
    `ResourceProcessor.Builder<K,​V>` | `key​(K key)` |
    `ResourceProcessor.Builder<K,​V>` | `keyTranslator​(Function<K,​ResourceKey> keyTranslator)` |
    `ResourceProcessor.Builder<K,​V>` | `processor​(Function<Resource,​V> processor)` |
    `ResourceProcessor.Builder<K,​V>` | `segment​(String segment)` |

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

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

- - ### Constructor Detail

    - #### Builder

          public Builder()

  - ### Method Detail

    - #### key

          public ResourceProcessor.Builder<K,​V> key​(K key)

    - #### segment

          public ResourceProcessor.Builder<K,​V> segment​(String segment)

    - #### keyTranslator

          public ResourceProcessor.Builder<K,​V> keyTranslator​(Function<K,​ResourceKey> keyTranslator)

    - #### processor

          public ResourceProcessor.Builder<K,​V> processor​(Function<Resource,​V> processor)

    - #### build

          public ResourceProcessor<K,​V> build()