Interface SingleItemFinder<K extends Serializable,T extends Serializable>

All Superinterfaces:
Serializable
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface SingleItemFinder<K extends Serializable,T extends Serializable> extends Serializable
Strategy for finding single item.
  • Method Summary

    Modifier and Type
    Method
    Description
    getItem(K key)
    Retrieves item from primary key or id, or null if not found.
  • Method Details

    • getItem

      T getItem(K key) throws Exception
      Retrieves item from primary key or id, or null if not found.
      Throws:
      Exception