com.bigdata.relation.accesspath
Interface IElementFilter<E>

All Superinterfaces:
Serializable
All Known Implementing Classes:
DoNotAddFilter, ElementFilter, ExplicitSPOFilter, InferredSPOFilter, InGraphBinarySearchFilter, InGraphHashSetFilter, NoAxiomFilter, RdfTypeRdfsResourceFilter, SameVariableConstraint, SolutionFilter, SPOFilter

public interface IElementFilter<E>
extends Serializable

Filter for accepting or rejecting visited elements.

Version:
$Id: IElementFilter.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson

Method Summary
 boolean accept(E e)
          True iff the argument is matched by the filter.
 boolean canAccept(Object o)
          Return true iff this this filter can be used on the specified object (filter on the object class).
 

Method Detail

accept

boolean accept(E e)
True iff the argument is matched by the filter.

Parameters:
e - An element.
Returns:
true iff the element is accepted by the filter.

canAccept

boolean canAccept(Object o)
Return true iff this this filter can be used on the specified object (filter on the object class).

Note: This was added by MikeP to filter out cases where the runtime type system was throwing a ClassCastException in the accept(Object) implementation.

Parameters:
o -
Returns:


Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.