|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileCollection
A FileCollection
represents a collection of files which you can query in certain ways. A file collection
is often used to define a classpath, or to add files to a container.
You can obtain a FileCollection
instance using Project.files(java.lang.Object...)
.
Method Summary | |
---|---|
java.lang.String |
getAsPath()
Returns the contents of this collection as a path. |
java.util.Set<java.io.File> |
getFiles()
Returns the contents of this collection. |
java.io.File |
getSingleFile()
Returns the content of this collection, asserting it contains exactly one file. |
FileCollection |
plus(FileCollection collection)
Returns a FileCollection which contains the union of this collection and the given collection. |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
java.io.File getSingleFile() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- when this collection does not contain exactly one file.java.util.Set<java.io.File> getFiles()
java.lang.String getAsPath()
FileCollection plus(FileCollection collection)
FileCollection
which contains the union of this collection and the given collection. The
returned collection is live, and tracks changes to both source collections.
collection
- The other collection. Should not be null.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |