dsto.dfc.databeans
Class UnionFilter<T>

java.lang.Object
  extended by dsto.dfc.databeans.UnionFilter<T>
All Implemented Interfaces:
IFilter<T>, Iterable<IFilter<T>>

public class UnionFilter<T>
extends Object
implements IFilter<T>, Iterable<IFilter<T>>

An IFilter that is a union of several sub filters. Includes items if any sub filter matches.

Author:
Matthew Phillips

Field Summary
 
Fields inherited from interface dsto.dfc.databeans.IFilter
NULL_FILTER
 
Constructor Summary
UnionFilter()
           
 
Method Summary
 void add(IFilter<T> filter)
           
 void clear()
           
 boolean contains(IFilter<T> filter)
           
 boolean include(T value)
          Return true if a given top-level value from source should be included.
 Iterator<IFilter<T>> iterator()
           
 void remove(IFilter<T> filter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnionFilter

public UnionFilter()
Method Detail

include

public boolean include(T value)
Description copied from interface: IFilter
Return true if a given top-level value from source should be included.

Specified by:
include in interface IFilter<T>

add

public void add(IFilter<T> filter)

remove

public void remove(IFilter<T> filter)

clear

public void clear()

contains

public boolean contains(IFilter<T> filter)

iterator

public Iterator<IFilter<T>> iterator()
Specified by:
iterator in interface Iterable<IFilter<T>>


Copyright © 2008 Commonwealth of Australia