net.amygdalum.stringsearchalgorithms.search.MatchOption Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stringsearchalgorithms Show documentation
Show all versions of stringsearchalgorithms Show documentation
Searching and Matching Strings with efficient algorithms:
- Knuth-Morris-Pratt
- Shift-And/Or
- Boyer-Moore-Horspool
- Sunday (QuickSearch)
- BNDM
- BOM
- Aho-Corasick
- Set-Horspool
- Wu-Manber
- Set-BOM
package net.amygdalum.stringsearchalgorithms.search;
public enum MatchOption implements StringFinderOption {
LONGEST_MATCH, NON_OVERLAP, NON_EMPTY;
public boolean in(StringFinderOption... options) {
for (int i = 0; i < options.length; i++) {
if (options[i] == this) {
return true;
}
}
return false;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy