Interface ObjectReachabilityChecker

    • Method Detail

      • areAllReachable

        java.util.Optional<RevObject> areAllReachable​(java.util.Collection<RevObject> targets,
                                                      java.util.stream.Stream<RevObject> starters)
                                               throws java.io.IOException
        Checks that all targets are reachable from the starters.
        Parameters:
        targets - objects to check for reachability from the starters
        starters - objects known to be reachable to the caller
        Returns:
        Optional a single unreachable target if there are any (there could be more). Empty optional means all targets are reachable.
        Throws:
        java.io.IOException - Cannot access underlying storage