public class EqualityMatcher extends Object implements LabelMatcher
| Modifier and Type | Method and Description |
|---|---|
static EqualityMatcher |
equal(String key,
String value)
The "equal" matcher.
|
String |
getKey() |
static EqualityMatcher |
notEqual(String key,
String value)
The "not equal" matcher.
|
boolean |
test(String s)
Returns true if a label value matches.
|
String |
toString() |
public static EqualityMatcher equal(String key, String value)
key - the matching label keyvalue - the matching label valuepublic static EqualityMatcher notEqual(String key, String value)
key - the matching label keyvalue - the matching label valuepublic boolean test(String s)
LabelMatchertest in interface LabelMatchers - the label valuepublic String getKey()
getKey in interface LabelMatcherCopyright © 2022. All rights reserved.