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
Modifier and TypeInterfaceDescriptionstatic interface
Defines an interface forSearchMatch
.static class
static class
-
Method Summary
Modifier and TypeMethodDescriptionstatic SearchMatch.Builder
builder()
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
-