Class CheckResult
java.lang.Object
io.github.sergeloie.languagecheck.check.CheckResult
The outcome of
CharacterChecker.check(java.lang.String, io.github.sergeloie.languagecheck.check.CharPolicy, int) for one file: a bounded
list of detailed Violation samples plus the total violation count.
total may exceed samples.size() when the sample cap
configured for the run was reached - the total is always exact.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CheckResultclean()A result with no violations.booleanisClean()True if the file had no violations at all.samples()The detailed violations (bounded by the run's sample cap).inttotal()The exact total number of violations in the file.
-
Constructor Details
-
CheckResult
-
-
Method Details
-
clean
A result with no violations. -
samples
The detailed violations (bounded by the run's sample cap). -
total
public int total()The exact total number of violations in the file. -
isClean
public boolean isClean()True if the file had no violations at all.
-