public class AndGameObjectMatcher extends java.lang.Object implements GameObjectMatcher
GameObjectMatcher that And-combines other GameObjectMatchers.| Constructor and Description |
|---|
AndGameObjectMatcher(@NotNull java.util.Collection<GameObjectMatcher> matchers)
Creates an
AndGameObjectMatcher. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isMatching(@NotNull GameObject<?,?,?> gameObject)
Matches a
GameObject. |
public AndGameObjectMatcher(@NotNull
@NotNull java.util.Collection<GameObjectMatcher> matchers)
AndGameObjectMatcher.matchers - the matchers to Andpublic 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