Class CustomImportOrderCheck.RuleMatchForImport

java.lang.Object
com.puppycrawl.tools.checkstyle.checks.imports.CustomImportOrderCheck.RuleMatchForImport
Enclosing class:
CustomImportOrderCheck

private static final class CustomImportOrderCheck.RuleMatchForImport extends Object
Contains matching attributes assisting in definition of "best matching" group for import.
  • Field Details

    • matchPosition

      private final int matchPosition
      Position of matching string for current best match.
    • matchLength

      private int matchLength
      Length of matching string for current best match.
    • group

      private String group
      Import group for current best match.
  • Constructor Details

    • RuleMatchForImport

      private RuleMatchForImport(String group, int length, int position)
      Constructor to initialize the fields.
      Parameters:
      group - Matched group.
      length - Matching length.
      position - Matching position.