public class HostSelector extends Descriptor
| Modifier and Type | Class and Description |
|---|---|
static class |
HostSelector.Operator |
| Constructor and Description |
|---|
HostSelector(String label,
HostSelector.Operator operator,
Object operand) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getLabel() |
Object |
getOperand() |
HostSelector.Operator |
getOperator() |
int |
hashCode() |
boolean |
matches(String value)
Check if the given value matches the host selectors.
|
static HostSelector |
parse(String str) |
String |
toPrettyString()
Return a human-readable string representation of the host selector.
|
String |
toString() |
parse, parse, toJsonBytes, toJsonStringpublic HostSelector(String label, HostSelector.Operator operator, Object operand)
public static HostSelector parse(String str)
public String getLabel()
public HostSelector.Operator getOperator()
public Object getOperand()
public boolean matches(@Nullable
String value)
value - Label value to test against.public String toPrettyString()
Copyright © 2017. All rights reserved.