- All Implemented Interfaces:
Function<String,Matcher>
This class is responsible for matching words in a given phrase.
-
Constructor Summary
Constructors
-
Method Summary
This method applies the word-matching pattern to a given phrase.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
WordsMatcher
public WordsMatcher()
-
Method Details
-
apply
This method applies the word-matching pattern to a given phrase.
It returns a Matcher object that can be used to find words in the phrase.
- Specified by:
apply in interface Function<String,Matcher>
- Parameters:
phrase - the phrase to apply the word-matching pattern to
- Returns:
- a Matcher object for finding words in the phrase