Class FilterIterator.Filter<A,B>

java.lang.Object
net.cscott.jutil.FilterIterator.Filter<A,B>
Enclosing class:
FilterIterator<A,B>

@Deprecated(since="2.0") public static class FilterIterator.Filter<A,B> extends Object
A filter and a mapping, for a FilterIterator.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated.
    Return true if the specified element should be included in the filtered enumeration.
    map(A o)
    Deprecated.
    Perform a mapping on elements from the source enumeration.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Filter

      public Filter()
      Deprecated.
  • Method Details

    • isElement

      public boolean isElement(A o)
      Deprecated.
      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)
      Deprecated.
      Perform a mapping on elements from the source enumeration.
      Default implementation returns o (identity mapping).