de.lmu.ifi.dbs.elki.visualization.visualizers.visunproj
Class CurveVisFactory.CurveFilter
java.lang.Object
de.lmu.ifi.dbs.elki.utilities.iterator.AbstractFilteredIterator<IterableResult<?>,IterableResult<DoubleDoublePair>>
de.lmu.ifi.dbs.elki.visualization.visualizers.visunproj.CurveVisFactory.CurveFilter
- All Implemented Interfaces:
- IterableIterator<IterableResult<DoubleDoublePair>>, Iterable<IterableResult<DoubleDoublePair>>, Iterator<IterableResult<DoubleDoublePair>>
- Enclosing class:
- CurveVisFactory
class CurveVisFactory.CurveFilter
- extends AbstractFilteredIterator<IterableResult<?>,IterableResult<DoubleDoublePair>>
- implements IterableIterator<IterableResult<DoubleDoublePair>>
Filter to only retrieve double-double-pair results.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parent
Iterator<IterableResult<?>> parent
- Parent iterator to use
CurveVisFactory.CurveFilter
public CurveVisFactory.CurveFilter(Iterator<IterableResult<?>> parent)
- Constructor.
- Parameters:
parent
- Parent iterator to decorate.
getParentIterator
protected Iterator<IterableResult<?>> getParentIterator()
- Description copied from class:
AbstractFilteredIterator
- Get an iterator for the actual data. Used in initialization.
- Specified by:
getParentIterator
in class AbstractFilteredIterator<IterableResult<?>,IterableResult<DoubleDoublePair>>
- Returns:
- iterator
testFilter
protected IterableResult<DoubleDoublePair> testFilter(IterableResult<?> nextobj)
- Description copied from class:
AbstractFilteredIterator
- Test the filter predicate for a new object.
- Specified by:
testFilter
in class AbstractFilteredIterator<IterableResult<?>,IterableResult<DoubleDoublePair>>
- Parameters:
nextobj
- Object to test
- Returns:
- cast object when true,
null
otherwise
iterator
public Iterator<IterableResult<DoubleDoublePair>> iterator()
- Specified by:
iterator
in interface Iterable<IterableResult<DoubleDoublePair>>