Interface MPlatformFileFilterType

All Known Implementing Classes:
MPlatformFileFilter

@Immutable public interface MPlatformFileFilterType

A file filter.

If a file is matched by at least one inclusion filter, and not matched by any exclusion filter, then the file will be treated as belonging to the given architecture and operating system.

  • Method Details

    • architecture

      MArchitectureName architecture()
      Returns:
      The architecture
    • operatingSystem

      MOperatingSystemName operatingSystem()
      Returns:
      The operating system
    • includes

      List<Pattern> includes()
      Returns:
      The filename inclusion patterns
    • excludes

      List<Pattern> excludes()
      Returns:
      The filename exclusion patterns
    • evaluate

      default boolean evaluate(String file)
      Evaluate the filter against the given file name.
      Parameters:
      file - The file name
      Returns:
      true iff the filter matched