Interface ServiceMatchingStrategy
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ServiceMatchingStrategyThis isServiceMatchingStrategy.- Since:
- 6.1.0
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static ServiceMatchingStrategyalwaysMatches()Always matches service matching strategy.booleanmatches(Service service, Service serviceToMatch)Determine whether a service matches another primarily used for validation events.static ServiceMatchingStrategyneverMatches()Never matches service matching strategy.
-
-
-
Method Detail
-
matches
boolean matches(Service service, Service serviceToMatch)
Determine whether a service matches another primarily used for validation events.- Parameters:
service- the serviceserviceToMatch- the match service- Returns:
- true /false
-
alwaysMatches
static ServiceMatchingStrategy alwaysMatches()
Always matches service matching strategy.- Returns:
- the service matching strategy
-
neverMatches
static ServiceMatchingStrategy neverMatches()
Never matches service matching strategy.- Returns:
- the service matching strategy
-
-