T - the generic type of the objects returned by the filter.public class TypeFilter<T> extends java.lang.Object implements CollectionFilter<T>
| Modifier and Type | Method and Description |
|---|---|
static <T> TypeFilter<T> |
byType(java.lang.Class<T> type)
Creates a new
. |
java.util.List<T> |
filter(java.util.Collection<?> target)
Filters the given collection by the type specified in this filter.
|
public static <T> TypeFilter<T> byType(java.lang.Class<T> type)
TypeFilter.T - the generic type of the target type.type - the target type for this filter.public java.util.List<T> filter(java.util.Collection<?> target)
filter in interface CollectionFilter<T>target - the collection to filter.java.lang.IllegalArgumentException - if the given collection is null.Copyright © 2007-2013 FEST (Fixtures for Easy Software Testing). All Rights Reserved.