Filter
public class IdenticalUnitDefinitionFilter extends java.lang.Object implements Filter
Filter
only accepts instances of UnitDefinition
that
satisfy the method
UnitDefinition.areIdentical(UnitDefinition, UnitDefinition)
.Constructor | Description |
---|---|
IdenticalUnitDefinitionFilter(UnitDefinition ud) |
Initializes this
Filter with a UnitDefinition to be used in
the accepts(Object) method for comparison. |
Modifier and Type | Method | Description |
---|---|---|
boolean |
accepts(java.lang.Object o) |
This method checks whether the given object is of the correct type and
has the desired properties set to be acceptable.
|
public IdenticalUnitDefinitionFilter(UnitDefinition ud)
Filter
with a UnitDefinition
to be used in
the accepts(Object)
method for comparison.ud
- public boolean accepts(java.lang.Object o)
Filter