org.sonatype.gshell.util.filter
Class TypeFilter<T>
java.lang.Object
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
|
Method Summary |
boolean |
accept(T page)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeFilter
public TypeFilter(Class<? extends T> type)
accept
public boolean accept(T page)
- Specified by:
accept in interface Filter<T>
Copyright © 2008-2011 Sonatype. All Rights Reserved.