Class IsExistingFile

java.lang.Object
cdc.validation.checkers.defaults.IsExistingFile
All Implemented Interfaces:
Checker<File>, Predicate<File>

public final class IsExistingFile extends Object implements Checker<File>
  • Field Details

  • Method Details

    • getValueClass

      public Class<File> getValueClass()
      Specified by:
      getValueClass in interface Checker<File>
      Returns:
      The class of tested values.
    • test

      public boolean test(File value)
      Specified by:
      test in interface Checker<File>
      Specified by:
      test in interface Predicate<File>
    • explain

      public String explain(boolean result, String arg)
      Description copied from interface: Checker
      Explains the conditions at which a positive or negative result is obtained.
      Specified by:
      explain in interface Checker<File>
      Parameters:
      result - The result to explain.
      arg - The argument name to use in explanations.
      Returns:
      A string explaining the conditions leading to result.