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 LabelMatcher
public boolean test(String s)
LabelMatcher
test
in interface LabelMatcher
s
- the label valueCopyright © 2020. All rights reserved.