Class NameListResourceProvider

    • Constructor Detail

      • NameListResourceProvider

        public NameListResourceProvider​(Collection<String> names)
    • Method Detail

      • getResource

        public final @Nullable Resource getResource​(String name)
        Description copied from interface: ResourceProvider
        Retrieves the resource with this name.
        Specified by:
        getResource in interface ResourceProvider
        Parameters:
        name - The name of the resource.
        Returns:
        The resource or null if not found.
      • getResources

        public final Collection<Resource> getResources​(String prefix,
                                                       Collection<String> suffixes)
        Description copied from interface: ResourceProvider
        Retrieve all resources whose last name component begins with this prefix and ends with any of these suffixes.
        Specified by:
        getResources in interface ResourceProvider
        Parameters:
        prefix - The prefix.
        suffixes - The suffixes.
        Returns:
        The matching resources.
      • toResource

        protected abstract Resource toResource​(String name)