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

java.lang.Object
  extended by org.sonatype.gshell.util.filter.TypeFilter<T>
All Implemented Interfaces:
Filter<T>

public class TypeFilter<T>
extends Object
implements Filter<T>

Filter to include objects assignable from a given type.

Since:
2.5
Author:
Jason Dillon

Constructor Summary
TypeFilter(Class<? extends T> type)
           
 
Method Summary
 boolean accept(T page)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeFilter

public TypeFilter(Class<? extends T> type)
Method Detail

accept

public boolean accept(T page)
Specified by:
accept in interface Filter<T>


Copyright © 2008-2011 Sonatype. All Rights Reserved.