org.modeshape.jcr

## Class InfinispanUtil.KeyMerger<K>

- java.lang.Object
- - org.modeshape.jcr.InfinispanUtil.KeyMerger<K>

- Type Parameters:
    `K` - the type of key
  All Implemented Interfaces:
    InfinispanUtil.Combiner<Set<K>>
  Enclosing class:
    InfinispanUtil

      protected static class InfinispanUtil.KeyMerger<K>
      extends Object
      implements InfinispanUtil.Combiner<Set<K>>

  Since keys can appear more than one time e.g. multiple owners in a distributed cache, they all must be merged into a Set.

- - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `InfinispanUtil.KeyMerger()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Set<K>` | `combine(Set<K> priorResult, Set<K> newResult)`

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

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

- - ### Constructor Detail

    - #### InfinispanUtil.KeyMerger

          protected InfinispanUtil.KeyMerger()

  - ### Method Detail

    - #### combine

          public Set<K> combine(Set<K> priorResult,
                       Set<K> newResult)

      Specified by:
        `combine` in interface `InfinispanUtil.Combiner<Set<K>>`

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.