java.lang.Object
me.gosimple.nbvcxz.matching.match.BaseMatch
me.gosimple.nbvcxz.matching.match.RepeatMatch
- All Implemented Interfaces:
Match
- Author:
- Adam Brusselback
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionRepeatMatch(String match, Configuration configuration, String repeatingCharacters, int start_index, int end_index) Create a newRepeatMatch -
Method Summary
Modifier and TypeMethodDescriptionReturns details about this match in the form of a String to be printed directlyintMethods inherited from class me.gosimple.nbvcxz.matching.match.BaseMatch
calculateEntropy, getAverageEntropy, getEndIndex, getLength, getStartIndex, getToken, log2, nCk, setEntropy
-
Constructor Details
-
RepeatMatch
public RepeatMatch(String match, Configuration configuration, 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
- Returns:
- the
charthat is repeated in the match.
-
getRepeat
public int getRepeat()- Returns:
inthow many time the repeatingCharacters is repeating in the match.
-
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.
-