Interface IgnoreMatcher

All Known Implementing Classes:
GitIgnoreMatcher, GlobIgnoreMatcher

public interface IgnoreMatcher
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if this IgnoreMatcher contains no rules.
    isIgnoredFile​(String filename)
    Checks if the file matches the stored expressions.
  • Method Details

    • isIgnoredFile

      Optional<Boolean> isIgnoredFile(String filename)
      Checks if the file matches the stored expressions.
      Parameters:
      filename - The filename to be checked
      Returns:
      empty: not matched, True: must be ignored, False: it must be UNignored
    • isEmpty

      boolean isEmpty()
      Returns true if this IgnoreMatcher contains no rules.
      Returns:
      true if this IgnoreMatcher contains no rules