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