Interface IParentProvider<PARENTTYPE>

  • Type Parameters:
    PARENTTYPE - The type of object to get a parent from
    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 IParentProvider<PARENTTYPE>
    This helper interface is required to build a generic tree. This is required because the used interfaces do not provide a base interface implementing a getParent method.
    Author:
    Philip Helger
    • Method Detail

      • getParent

        @Nullable
        PARENTTYPE getParent​(PARENTTYPE aCurrent)
        Get the parent of the passed object.
        Parameters:
        aCurrent - The object to determine the parent of. No null or non- null constraint possible.
        Returns:
        The parent object, or null if the object has no parent.