public class LimitWithDirectory extends FilesProviderWithDirectoryUnary
Constructor and Description |
---|
LimitWithDirectory() |
Modifier and Type | Method and Description |
---|---|
int |
getMaxNumItems() |
void |
setMaxNumItems(int maxNumItems) |
protected List<File> |
transform(List<File> source)
Transform an existing collection of files.
|
getDirectoryAsPath, getFiles, matchingFilesForDirectory, setFiles
create, getDirectoryAsPathEnsureAbsolute, rootDirectory
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
protected List<File> transform(List<File> source) throws FilesProviderException
FilesProviderWithDirectoryUnary
Note that the incoming collection of files may be modified, and can no longer be used in its original form after this method call.
transform
in class FilesProviderWithDirectoryUnary
source
- the incoming files (which may be consumed and modified).FilesProviderException
- if unable to complete the transform operation successfully.public int getMaxNumItems()
public void setMaxNumItems(int maxNumItems)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.