Interface HealthContributorMembership
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Determines if a health contributor is a member of a group or collection.
- Since:
- 4.1.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic HealthContributorMembershipalways()Return aHealthContributorMembershipthat always matches.static HealthContributorMembershipbyIncludeExclude(@Nullable Set<String> include, @Nullable Set<String> exclude) Return aHealthContributorMembershipinstance that matches based on include and exclude patterns.booleanReturnstrueif the given contributor is a member.
-
Method Details
-
isMember
Returnstrueif the given contributor is a member.- Parameters:
name- the contributor name- Returns:
trueif the contributor is a member
-
always
Return aHealthContributorMembershipthat always matches.- Returns:
- a
HealthContributorMembershipinstance that always matches
-
byIncludeExclude
static HealthContributorMembership byIncludeExclude(@Nullable Set<String> include, @Nullable Set<String> exclude) Return aHealthContributorMembershipinstance that matches based on include and exclude patterns. Support'*'patterns and'/'separated names.- Parameters:
include- the include patterns ornullexclude- the exclude patterns ofnull- Returns:
- a new
HealthContributorMembershipinstance
-