|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fest.util.TypeFilter<T>
T
- the generic type of the objects returned by the filter.public class TypeFilter<T>
Understands filtering elements of a collection by their data type.
Method Summary | ||
---|---|---|
static
|
byType(Class<T> type)
Creates a new . |
|
List<T> |
filter(Collection<?> target)
Filters the given collection by the type specified in this filter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> TypeFilter<T> byType(Class<T> type)
TypeFilter
.
T
- the generic type of the target type.type
- the target type for this filter.
public List<T> filter(Collection<?> target)
filter
in interface CollectionFilter<T>
target
- the collection to filter.
IllegalArgumentException
- if the given collection is null
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |