Can someone tell me how I can override the HashSet contains () method to use regular match instead of equals ()?
Or, if not overridden, how can I add a method to use the regex pattern? Basically, I want to be able to run a regular expression on strings containing a HashSet, and I need to fine-tune the substrings with the regular expression.
If my method does not work, ask others.
Thank.:)
source
share