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)
LabelMatcher
test
in interface LabelMatcher
s
- the label valuepublic String getKey()
getKey
in interface LabelMatcher
Copyright © 2021. All rights reserved.