public class SolutionFilter<E> extends Object implements IElementFilter<ISolution<E>>
ISolution
to its element and delegates the filter
test to an IElementFilter
suitable for the expected element type.Constructor and Description |
---|
SolutionFilter(IElementFilter<E> delegate) |
public SolutionFilter(IElementFilter<E> delegate)
public boolean isValid(Object o)
IFilterTest
isValid
in interface IFilterTest
public boolean canAccept(Object o)
IElementFilter
Note: This was added to make it possible filter out cases where the
runtime type system was throwing a ClassCastException
in the
IFilterTest.isValid(Object)
implementation.
canAccept
in interface IElementFilter<ISolution<E>>
o
- An object of some type.true
if the element can be inspected by this filter.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.