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