Class ResourceFiles
java.lang.Object
org.springframework.aot.test.generator.file.ResourceFiles
- All Implemented Interfaces:
- Iterable<ResourceFile>
An immutable collection of 
ResourceFile instances.- Since:
- 6.0
- Author:
- Phillip Webb
- 
Method SummaryModifier and TypeMethodDescriptionand(ResourceFile... ResourceFiles) Return a newResourceFilesinstance that merges files from another array ofResourceFileinstances.and(ResourceFiles ResourceFiles) Return a newResourceFilesinstance that merges files from anotherResourceFilesinstance.booleanGet theResourceFilewith the givenDynamicFile#getPath() path.Return the single source file contained in the collection.inthashCode()booleanisEmpty()Returnstrueif this collection is empty.iterator()static ResourceFilesnone()Return aDynamicFilesinstance with no items.static ResourceFilesof(ResourceFile... ResourceFiles) Factory method that can be used to create aResourceFilesinstance containing the specified files.stream()Stream theResourceFileinstances contained in this collection.toString()Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Method Details- 
noneReturn aDynamicFilesinstance with no items.- Returns:
- the empty instance
 
- 
ofFactory method that can be used to create aResourceFilesinstance containing the specified files.- Parameters:
- ResourceFiles- the files to include
- Returns:
- a ResourceFilesinstance
 
- 
andReturn a newResourceFilesinstance that merges files from another array ofResourceFileinstances.- Parameters:
- ResourceFiles- the instances to merge
- Returns:
- a new ResourceFilesinstance containing merged content
 
- 
andReturn a newResourceFilesinstance that merges files from anotherResourceFilesinstance.- Parameters:
- ResourceFiles- the instance to merge
- Returns:
- a new ResourceFilesinstance containing merged content
 
- 
iterator- Specified by:
- iteratorin interface- Iterable<ResourceFile>
 
- 
streamStream theResourceFileinstances contained in this collection.- Returns:
- a stream of file instances
 
- 
isEmptypublic boolean isEmpty()Returnstrueif this collection is empty.- Returns:
- if this collection is empty
 
- 
getGet theResourceFilewith the givenDynamicFile#getPath() path.- Parameters:
- path- the path to find
- Returns:
- a ResourceFileinstance ornull
 
- 
getSingleReturn the single source file contained in the collection.- Returns:
- the single file
- Throws:
- IllegalStateException- if the collection doesn't contain exactly one file
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-