Class ExistingFiles

java.lang.Object
org.eluder.coveralls.maven.plugin.util.ExistingFiles
All Implemented Interfaces:
Iterable<File>

public class ExistingFiles extends Object implements Iterable<File>
The Class ExistingFiles.
  • Constructor Details

    • ExistingFiles

      public ExistingFiles()
      Instantiates a new existing files.
  • Method Details

    • addAll

      public ExistingFiles addAll(Iterable<File> files)
      Adds the all.
      Parameters:
      files - the files
      Returns:
      the existing files
    • add

      public ExistingFiles add(File file)
      Adds the.
      Parameters:
      file - the file
      Returns:
      the existing files
    • iterator

      public Iterator<File> iterator()
      Specified by:
      iterator in interface Iterable<File>
    • create

      public static ExistingFiles create(Iterable<File> files)
      Creates the.
      Parameters:
      files - the files
      Returns:
      the existing files
    • toParsers

      public List<CoverageParser> toParsers(Function<File, CoverageParser> parserFunction)
      Converts existing files to a list of CoverageParser using the provided function.
      Parameters:
      parserFunction - function to convert File to CoverageParser
      Returns:
      list of CoverageParser for valid files