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
-
Field Summary
-
Constructor Summary
Constructors Constructor Description RepeatMatch(java.lang.String match, Configuration configuration, java.lang.String repeatingCharacters, int start_index, int end_index)Create a newRepeatMatch -
Method Summary
Modifier and Type Method Description java.lang.StringgetDetails()Returns details about this match in the form of a String to be printed directlyintgetRepeat()java.lang.StringgetRepeatingCharacters()Methods inherited from class me.gosimple.nbvcxz.matching.match.BaseMatch
calculateEntropy, getAverageEntropy, getEndIndex, getLength, getStartIndex, getToken, log2, nCk, setEntropy
-
Constructor Details
-
RepeatMatch
public RepeatMatch(java.lang.String match, Configuration configuration, java.lang.String repeatingCharacters, int start_index, int end_index)Create a newRepeatMatch- Parameters:
match- theStringwe are creating theRepeatMatchfrom.configuration- theConfigurationobject.repeatingCharacters- the characters which were repeatedstart_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
charthat is repeated in the match.
-
getRepeat
public int getRepeat()- Returns:
inthow many time the repeatingCharacters is repeating in the match.
-
getDetails
public java.lang.String getDetails()Description copied from interface:MatchReturns details about this match in the form of a String to be printed directly- Specified by:
getDetailsin interfaceMatch- Overrides:
getDetailsin classBaseMatch- Returns:
- all specific details about this
Matchin printable String format.
-