Interface NoMatchingMethodsHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Consumer that will be called if
PatternMatchingMethodInvoker.invoke(Object) or PatternMatchingMethodInvoker.invoke(Object, NoMatchingMethodsHandler) is called with an argument that doesn't match any methods-
Method Summary
Modifier and TypeMethodDescriptionvoidnoMatchesFor(Object argument) This method will be called ifPatternMatchingMethodInvoker.invoke(Object)orPatternMatchingMethodInvoker.invoke(Object, NoMatchingMethodsHandler)is called with an argument that doesn't match any methods
-
Method Details
-
noMatchesFor
This method will be called ifPatternMatchingMethodInvoker.invoke(Object)orPatternMatchingMethodInvoker.invoke(Object, NoMatchingMethodsHandler)is called with an argument that doesn't match any methods- Parameters:
argument- the argument provided toPatternMatchingMethodInvoker.invoke(Object)orPatternMatchingMethodInvoker.invoke(Object, NoMatchingMethodsHandler)which didn't result in any matching methods
-