Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.hp.hpl.jena.util.iterator
Class Filter

    java.lang.Object
      com.hp.hpl.jena.util.iterator.Filter

Direct Known Subclasses:
  OntTools.PredicatesFilter, TripleMatchFilter

    public abstract class Filter

extends java.lang.Object

boolean functions wrapped to be used in filtering iterators.

Author:
  jjc, kers

Field Summary
`static Filter` | `any` A Filter that accepts everything it's offered.

Constructor Summary
`Filter()`

Method Summary
`abstract boolean` | `accept(java.lang.Object o)` Answer true iff the object `o` is acceptable.
`Filter` | `and(Filter other)`
`ExtendedIterator` | `filterKeep(java.util.Iterator it)`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### any

    public static final Filter any

  A Filter that accepts everything it's offered.

Constructor Detail

### Filter

    public Filter()

Method Detail

### accept

    public abstract boolean accept(java.lang.Object o)

  Answer true iff the object `o` is acceptable. This method may also throw an exception if the argument is of a wrong type; it is not required to return `false` in such a case.

### filterKeep

    public ExtendedIterator filterKeep(java.util.Iterator it)

### and

    public Filter and(Filter other)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP