net.cscott.jutil

Class FilterIterator.Filter<A,B>

public static class FilterIterator.Filter<A,B> extends Object

Method Summary
booleanisElement(A o)
Return true if the specified element should be included in the filtered enumeration.
Bmap(A o)
Perform a mapping on elements from the source enumeration.

Method Detail

isElement

public boolean isElement(A o)
Return true if the specified element should be included in the filtered enumeration.
Default implementation returns true for all Objects (no filter).

map

public B map(A o)
Perform a mapping on elements from the source enumeration.
Default implementation returns o (identity mapping).
Copyright (c) 2006 C. Scott Ananian