20 package net.sf.gridarta.model.select;
22 import java.util.Arrays;
23 import java.util.HashSet;
29 import org.jetbrains.annotations.NotNull;
57 this.attributeNames =
new HashSet<>(Arrays.asList(attributeNames));
61 public boolean matches(@NotNull
final G gameObject) {
64 if (tmp.length == 2 && !attributeNames.contains(tmp[0])) {
65 if (tmp[1].contains(attributeValue)) {
Utility class for string manipulation.
boolean matches(@NotNull final G gameObject)
A MatchCriteria that matches attribute values of all but a set of attributes.
static final Pattern PATTERN_SPACES
The pattern that matches a non-empty sequence of spaces.
Base package of all Gridarta classes.
Reflects a game object (object on a map).
GameObjects are the objects based on Archetypes found on maps.
final String attributeValue
The attribute value to check.
static final Pattern PATTERN_END_OF_LINE
The pattern to match end of line characters separating lines.
final Set< String > attributeNames
The attribute names not to check.
AttributeOtherValueMatchCriteria(@NotNull final String attributeValue, @NotNull final String... attributeNames)
Creates a new instance.
Criteria for game object matchers.
Interface for MapArchObjects.