java.lang.Object
me.gosimple.nbvcxz.matching.match.BaseMatch
me.gosimple.nbvcxz.matching.match.SequenceMatch
- All Implemented Interfaces:
Match
public final class SequenceMatch extends BaseMatch
- Author:
- Adam Brusselback
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SequenceMatch(java.lang.String match, Configuration configuration, int start_index, int end_index)Create a newSequenceMatch -
Method Summary
Modifier and Type Method Description java.lang.StringgetDetails()Returns details about this match in the form of a String to be printed directlychargetFirstCharacter()Methods inherited from class me.gosimple.nbvcxz.matching.match.BaseMatch
calculateEntropy, getAverageEntropy, getEndIndex, getLength, getStartIndex, getToken, log2, nCk, setEntropy
-
Constructor Details
-
SequenceMatch
public SequenceMatch(java.lang.String match, Configuration configuration, int start_index, int end_index)Create a newSequenceMatch- Parameters:
match- theStringwe are creating theSequenceMatchfrom.configuration- theConfigurationobject.start_index- the start index in the password for this match.end_index- the end index in the password for this match.
-
-
Method Details
-
getFirstCharacter
public char getFirstCharacter()- Returns:
- the first
charof the sequence.
-
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.
-