org.entityfs.util
Class EntityFilterToEntityAndRelativeLocationFilterAdapter
java.lang.Object
org.entityfs.util.EntityFilterToEntityAndRelativeLocationFilterAdapter
- All Implemented Interfaces:
- Cloneable, Filter<EntityAndRelativeLocation<? extends EntityView>>
public class EntityFilterToEntityAndRelativeLocationFilterAdapter
- extends Object
- implements Filter<EntityAndRelativeLocation<? extends EntityView>>
This adapter can be used for filtering the entities in
EntityAndRelativeLocation
objects using entity filters.
- Since:
- 1.1
- Author:
- Karl Gustafsson
- See Also:
EntityAndRelativeLocation
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityFilterToEntityAndRelativeLocationFilterAdapter
public EntityFilterToEntityAndRelativeLocationFilterAdapter(Filter<? super EntityView> entityFilter)
- Create a new entity and relative location object filter based on an
entity filter.
- Parameters:
entityFilter
- The entity filter.
matches
public boolean matches(EntityAndRelativeLocation<?> object)
- Description copied from interface:
Filter
- Does the filter match the object?
- Specified by:
matches
in interface Filter<EntityAndRelativeLocation<? extends EntityView>>
- Parameters:
object
- The object to match.
- Returns:
true
if the filter matches the object.