public class SetMatcher extends Object implements LabelMatcher
| Modifier and Type | Method and Description |
|---|---|
static SetMatcher |
exists(String key)
The "exists" set matcher.
|
String |
getKey() |
static SetMatcher |
in(String key,
String... values)
The "in" set matcher.
|
static SetMatcher |
notExists(String key)
The "not exists" set matcher.
|
static SetMatcher |
notIn(String key,
String... values)
The "not in" set matcher.
|
boolean |
test(String s)
Returns true if a label value matches.
|
String |
toString() |
public static SetMatcher in(String key, String... values)
key - the keyvalues - the valuespublic static SetMatcher notIn(String key, String... values)
key - the keyvalues - the valuespublic static SetMatcher exists(String key)
key - the keypublic static SetMatcher notExists(String key)
key - the keypublic String getKey()
getKey in interface LabelMatcherpublic boolean test(String s)
LabelMatchertest in interface LabelMatchers - the label valueCopyright © 2021. All rights reserved.