Interface PackContents

    • Method Detail

      • paths

        Collection<ResourcePath> paths​(PackType type,
                                       String namespace,
                                       String prefix,
                                       int depth,
                                       Predicate<String> filter)
        Finds all the ResourcePaths in this pack matching the prefix and filter, and within the given depth.
        Parameters:
        type - The type
        namespace - The namespace to search
        prefix - The prefix of the path
        depth - The depth to search
        filter - The filter every path must match
        Returns:
        A collection of matching paths
        See Also:
        PackType
      • exists

        boolean exists​(PackType type,
                       ResourcePath path)
        Tests if this pack contains an entry at the given ResourcePath.
        Parameters:
        type - The type
        path - The resource path
        Returns:
        True if it exists, false if it does not
        See Also:
        PackType