Class RepeatMatch

java.lang.Object
me.gosimple.nbvcxz.matching.match.BaseMatch
me.gosimple.nbvcxz.matching.match.RepeatMatch
All Implemented Interfaces:
Match

public final class RepeatMatch
extends BaseMatch
Author:
Adam Brusselback
  • Constructor Details

    • RepeatMatch

      public RepeatMatch​(java.lang.String match, Configuration configuration, java.lang.String repeatingCharacters, int start_index, int end_index)
      Create a new RepeatMatch
      Parameters:
      match - the String we are creating the RepeatMatch from.
      configuration - the Configuration object.
      repeatingCharacters - the characters which were repeated
      start_index - the start index in the password for this match.
      end_index - the end index in the password for this match.
  • Method Details

    • getRepeatingCharacters

      public java.lang.String getRepeatingCharacters()
      Returns:
      the char that is repeated in the match.
    • getRepeat

      public int getRepeat()
      Returns:
      int how many time the repeatingCharacters is repeating in the match.
    • getDetails

      public java.lang.String getDetails()
      Description copied from interface: Match
      Returns details about this match in the form of a String to be printed directly
      Specified by:
      getDetails in interface Match
      Overrides:
      getDetails in class BaseMatch
      Returns:
      all specific details about this Match in printable String format.