org.entityfs.util
Class EntityFilterToEntityAndRelativeLocationFilterAdapter

java.lang.Object
  extended by 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
In_jar:
entityfs-util

Constructor Summary
EntityFilterToEntityAndRelativeLocationFilterAdapter(Filter<? super EntityView> entityFilter)
          Create a new entity and relative location object filter based on an entity filter.
 
Method Summary
 boolean matches(EntityAndRelativeLocation<?> object)
          Does the filter match the object?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.