Interface SearchMatch
- All Known Implementing Classes:
SearchMatch.DefaultSearchMatch
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface defining a search match for
text agains pattern.
Resulting match result gives information in a context of text how and
where matches happens and provides a score number which can be to
sort results.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceDefines an interface forSearchMatch.static classstatic class -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchMatch.Builderbuilder()Gets an instance of a builder for aSearchMatch.Match a pattern into a given text.
-
Method Details
-
match
Match a pattern into a given text.- Parameters:
text- the text to searchpattern- the search pattern- Returns:
- a result
-
builder
Gets an instance of a builder for aSearchMatch.- Returns:
- builder for search match
-