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.Object
public boolean test(java.lang.String s)
LabelMatcher
test
in interface LabelMatcher
s
- the label valuepublic java.lang.String getKey()
getKey
in interface LabelMatcher
Copyright © 2019. All rights reserved.