Interface IResource

  • All Known Implementing Classes:
    ValueWrappingResource

    public interface IResource
    A simple resource containing an object and (optionally) child objects accessible by key.
    • Method Detail

      • getObject

        Object getObject​(ComparisonContext comparisonContext)
        Returns the contained object.
        Parameters:
        comparisonContext - The context of the current comparison operation. Can't null
        Returns:
        the contained object, may be null
      • getChild

        Object getChild​(ComparisonContext comparisonContext,
                        Object key)
        Returns a child object by its key.
        Parameters:
        comparisonContext - The context of the current comparison operation. Can't null
        key - the child key, not null
        Returns:
        the child object or null if not available