org.sonatype.gshell.util.filter
Class AggregateFilter<T>

java.lang.Object
  extended by org.sonatype.gshell.util.filter.AggregateFilter<T>
All Implemented Interfaces:
Filter<T>
Direct Known Subclasses:
AndFilter, OrFilter

public abstract class AggregateFilter<T>
extends Object
implements Filter<T>

Support for aggregating filters.

Since:
2.5
Author:
Jason Dillon

Constructor Summary
protected AggregateFilter()
           
protected AggregateFilter(Filter<T>... filters)
           
 
Method Summary
 AggregateFilter<T> add(Filter<T>... filters)
           
 AggregateFilter<T> and(Filter<T>... filters)
           
 List<Filter<T>> getFilters()
           
 AggregateFilter<T> not(Filter<T> filter)
           
 AggregateFilter<T> or(Filter<T>... filters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.sonatype.gshell.util.filter.Filter
accept
 

Constructor Detail

AggregateFilter

protected AggregateFilter()

AggregateFilter

protected AggregateFilter(Filter<T>... filters)
Method Detail

getFilters

public List<Filter<T>> getFilters()

add

public AggregateFilter<T> add(Filter<T>... filters)

and

public AggregateFilter<T> and(Filter<T>... filters)

or

public AggregateFilter<T> or(Filter<T>... filters)

not

public AggregateFilter<T> not(Filter<T> filter)


Copyright © 2008-2011 Sonatype. All Rights Reserved.