Package com.wavemaker.commons.io
Class ResourcesCollection<T extends Resource>
- java.lang.Object
-
- com.wavemaker.commons.io.AbstractResources<T>
-
- com.wavemaker.commons.io.ResourcesCollection<T>
-
- All Implemented Interfaces:
Resources<T>,java.lang.Iterable<T>
public class ResourcesCollection<T extends Resource> extends AbstractResources<T>
Implementation ofResourcesbacked by aCollection.
-
-
Constructor Summary
Constructors Constructor Description ResourcesCollection(Folder source, java.util.Collection<T> resources)ResourcesCollection(Folder source, T... resources)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FoldergetSource()Returns the source of the resources.java.util.Iterator<T>iterator()-
Methods inherited from class com.wavemaker.commons.io.AbstractResources
copyTo, delete, exclude, fetchAll, files, folders, getResourceFilterContext, include, moveTo, performOperation
-
-
-
-
Method Detail
-
getSource
public Folder getSource()
Description copied from interface:ResourcesReturns the source of the resources. Items in this collection will bemovedorcopiedrelative to the source. For example, if this object contains the files '/a/b/c.txt' and '/d/e/f.txt' and the source is '/d' copy to '/x/ will result in '/x/b/c.txt' and 'x/e/f.txt'.- Returns:
- the source for the resources
-
iterator
public java.util.Iterator<T> iterator()
-
-