public class StringAttributeGameObjectMatcher extends AttributeGameObjectMatcher
AttributeGameObjectMatcher that compares attributes values using
"string" type.| Constructor and Description |
|---|
StringAttributeGameObjectMatcher(@NotNull java.lang.String name,
@NotNull Operation operation,
@NotNull java.lang.String value,
boolean useDefArch)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
compareValue(@NotNull GameObject<?,?,?> gameObject)
Compares the attribute value of a given game object with the expected
value.
|
isMatchingpublic StringAttributeGameObjectMatcher(@NotNull
@NotNull java.lang.String name,
@NotNull
@NotNull Operation operation,
@NotNull
@NotNull java.lang.String value,
boolean useDefArch)
name - the attribute name to matchoperation - the Operator to usevalue - the attribute value to compare withuseDefArch - whether to query the archetype as wellprotected int compareValue(@NotNull
@NotNull GameObject<?,?,?> gameObject)
AttributeGameObjectMatchercompareValue in class AttributeGameObjectMatchergameObject - the game object