|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.schmant.support.AbstractArgumentChecker org.schmant.arg.DirectoryAndFilter
public class DirectoryAndFilter
This object represents a directory and an entity Filter
. It can be
used as an argument to directory-interpreting methods in
ArgumentInterpreter
.
It is up to the class using objects of this type to choose how to use the filter. Commonly, the filter is applied to filter the entities returned when iterating (recursively or not) over the directory's child entities.
Constructor Summary | |
---|---|
DirectoryAndFilter(Object o,
Filter<? super EntityView> f)
|
Method Summary | |
---|---|
Object |
getDirectory()
Get the directory property. |
Filter<? super EntityView> |
getFilter()
Get the filter property. |
static List<DirectoryAndFilter> |
listWithFilter(Collection<?> c,
Filter<? super EntityView> f)
Create a list with DirectoryAndFilter objects for each element in
the collection and return it. |
String |
toString()
|
Methods inherited from class org.schmant.support.AbstractArgumentChecker |
---|
check, check, check, check |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DirectoryAndFilter(Object o, Filter<? super EntityView> f)
Method Detail |
---|
public Object getDirectory()
public Filter<? super EntityView> getFilter()
public static List<DirectoryAndFilter> listWithFilter(Collection<?> c, Filter<? super EntityView> f)
DirectoryAndFilter
objects for each element in
the collection and return it.
c
- The collection.f
- The filter to use.
DirectoryAndFilter
objects. The list is sorted
in the order that the objects were returned when iterating over the
supplied collection.public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |