public class AndGameObjectMatcher extends java.lang.Object implements GameObjectMatcher
GameObjectMatcher
that And-combines other GameObjectMatcher
s.Constructor and Description |
---|
AndGameObjectMatcher(java.util.Collection<GameObjectMatcher> matchers)
Creates an
AndGameObjectMatcher . |
Modifier and Type | Method and Description |
---|---|
boolean |
isMatching(GameObject<?,?,?> gameObject)
Matches an
GameObject . |
public AndGameObjectMatcher(@NotNull java.util.Collection<GameObjectMatcher> matchers)
AndGameObjectMatcher
.matchers
- the matchers to Andpublic boolean isMatching(@NotNull GameObject<?,?,?> gameObject)
GameObject
.isMatching
in interface GameObjectMatcher
gameObject
- the GameObject
to matchtrue
if this matcher matches the given game object,
otherwise false