Interface NaturalKey<T,​K>

  • Type Parameters:
    T - the type of the dataset item
    K - the type of the dataset item's natural key
    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 NaturalKey<T,​K>
    A function to derive a natural key for a given dataset item.
    • Method Detail

      • getNaturalKey

        K getNaturalKey​(T item)
        Returns a natural key for the given dataset item.
        Parameters:
        item - the dataset item for which a natural key is to be derived
        Returns:
        the natural key of the given item