public class OrGameObjectMatcher extends java.lang.Object implements GameObjectMatcher
GameObjectMatcher that Or-combines other GameObjectMatchers.| Constructor and Description |
|---|
OrGameObjectMatcher(@NotNull java.util.Collection<GameObjectMatcher> matchers)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isMatching(@NotNull GameObject<?,?,?> gameObject)
Matches a
GameObject. |
public OrGameObjectMatcher(@NotNull
@NotNull java.util.Collection<GameObjectMatcher> matchers)
matchers - the matchers to Orpublic boolean isMatching(@NotNull
@NotNull GameObject<?,?,?> gameObject)
GameObjectMatcherGameObject.isMatching in interface GameObjectMatchergameObject - the GameObject to matchtrue if this matcher matches the given game object,
otherwise false