Package com.io7m.montarre.api
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
- Returns:
- The filename inclusion patterns
-
excludes
- Returns:
- The filename exclusion patterns
-
evaluate
Evaluate the filter against the given file name.- Parameters:
file- The file name- Returns:
trueiff the filter matched
-