Interface ParentItemProvider<T>


public interface ParentItemProvider<T>
A functional interface, that allows an object based on a different item.
Author:
Stefan Uebe
  • Method Summary

    Modifier and Type
    Method
    Description
    getParent(T item)
    Returns the parent for a given item.
  • Method Details

    • getParent

      Optional<T> getParent(T item)
      Returns the parent for a given item. If there is no parent item for the given one, the method should return an empty optional.
      Returns:
      optional parent instance