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