Package io.kubernetes.client.util.labels
Class EqualityMatcher
java.lang.Object
io.kubernetes.client.util.labels.EqualityMatcher
- All Implemented Interfaces:
LabelMatcher
Equality-based matcher for label-selection.
https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#equality-based-requirement
-
Method Summary
-
Method Details
-
equal
The "equal" matcher. Matches a label iff the label is present and equal.- Parameters:
key
- the matching label keyvalue
- the matching label value- Returns:
- the equality matcher
-
notEqual
The "not equal" matcher. Matches a label iff the label is not present or not equal.- Parameters:
key
- the matching label keyvalue
- the matching label value- Returns:
- the equality matcher
-
toString
-
test
Description copied from interface:LabelMatcher
Returns true if a label value matches.- Specified by:
test
in interfaceLabelMatcher
- Parameters:
s
- the label value- Returns:
- the boolean
-
getKey
- Specified by:
getKey
in interfaceLabelMatcher
-