Hello StackOverflow...
Could anybody tell me how I can override HashSet's contains() method to use a regex match instead of just equals()?
Or if not overriding, how I can add a method to use a regex pattern? Basically, I want to be able to run regex on a HashSet containing strings, and I need to match substrings using regex.
If my method is not appropriate, please suggest others.
Thank you. :)