Interface MappingService.KeyProvider

  • All Known Implementing Classes:
    DummyKeyProvider, PKKeyProvider
    Enclosing class:
    MappingService

    public static interface MappingService.KeyProvider
    A KeyProvider provides a key, to be used for the mapping of a specific item.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Object getKey​(java.lang.Object item)
      Returns a key to be used for mapping item.
    • Method Detail

      • getKey

        java.lang.Object getKey​(java.lang.Object item)
                         throws java.lang.IllegalArgumentException
        Returns a key to be used for mapping item.
        Parameters:
        item - the item for which a key is to returned
        Returns:
        the key to be used for mapping item
        Throws:
        java.lang.IllegalArgumentException - if no valid key can be retrieved for item