20 package net.sf.gridarta.model.filter;
22 import java.util.Collection;
23 import java.util.Collections;
24 import java.util.HashMap;
26 import org.jetbrains.annotations.NotNull;
27 import org.jetbrains.annotations.Nullable;
36 private final Map<String, String>
properties =
new HashMap<>();
56 public void setProperty(@NotNull
final String name, @NotNull
final String value) {
57 final String oldValue = properties.get(name);
58 if (oldValue != null && oldValue.equals(value)) {
62 properties.put(name, value);
68 return properties.get(name);
73 return Collections.unmodifiableSet(properties.keySet());
final F filter
The Filter this filter config belongs to.
void fireEvent( @NotNull final FilterConfigChangeType filterConfigChangeType, @NotNull final FilterConfig<?, ?> filterConfig)
Notify all listeners that a FilterConfig has happened.
Abstract base class for filter configurations.
A Filter which filters according to a net.sf.gridarta.model.match.NamedGameObjectMatcher.
NamedGameObjectMatcherFilterConfig getThis()
String getProperty(@NotNull final String name)
void removeAllProperties()
Types of FilterConfig change types.
void setProperty(@NotNull final String name, @NotNull final String value)
final Map< String, String > properties
Interface for visitors of filter configs.
NamedGameObjectMatcherFilterConfig(@NotNull final NamedGameObjectMatcherFilter filter)
Creates a new instance.
CHANGE
The filter config has changed.
Filter configuration of NamedGameObjectMatcherFilter instances.
Collection< String > getProperties()
void accept(@NotNull final FilterConfigVisitor visitor)