Interface IHasParent<PARENTTYPE>

Type Parameters:
PARENTTYPE - The type of the parent objects
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 IHasParent<PARENTTYPE>
This helper interface is required to build a hierarchy of objects.
Author:
Philip
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the parent object of this object.
    default boolean
    Check if this element has a parent.
  • Method Details

    • getParent

      @Nullable PARENTTYPE getParent()
      Get the parent object of this object.
      Returns:
      The parent object or null if this object has no parent.
    • hasParent

      default boolean hasParent()
      Check if this element has a parent.
      Returns:
      true if this element has a parent, false otherwise.
      Since:
      8.5.2