case class FolderContent[ID, FILE, FOLDER](folderID: ID, files: Map[ID, FILE], folders: Map[ID, FOLDER]) extends Product with Serializable
A data class that stores the content of a specific folder.
An instances contains the (sub) folders and files contained in the represented folder. They are organized in maps, so that they can be accessed directly by their IDs.
- ID
the type to represent an ID
- FILE
the type to represent a file
- FOLDER
the type to represent a folder
- folderID
the ID of the represented folder
- files
a map with the files contained in this folder
- folders
a map with the sub folders of this folder
- Alphabetic
- By Inheritance
- FolderContent
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new FolderContent(folderID: ID, files: Map[ID, FILE], folders: Map[ID, FOLDER])
- folderID
the ID of the represented folder
- files
a map with the files contained in this folder
- folders
a map with the sub folders of this folder
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val files: Map[ID, FILE]
- val folderID: ID
- val folders: Map[ID, FOLDER]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def mapContent(mapFiles: Option[(FILE) => FILE] = None, mapFolders: Option[(FOLDER) => FOLDER] = None): FolderContent[ID, FILE, FOLDER]
Applies mappings to the content stored in this object.
Applies mappings to the content stored in this object. The mapping functions that are defined are invoked on the files and folders, and a new instance is created with the results. Note: The mapping functions must not change the IDs of elements.
- mapFiles
optional mapping function on files
- mapFolders
optional mapping function on folders
- returns
the result of the mapping
- def mapContentParallel(mapFiles: Option[(FILE) => FILE] = None, mapFolders: Option[(FOLDER) => FOLDER] = None)(implicit ec: ExecutionContext): Future[FolderContent[ID, FILE, FOLDER]]
Applies mappings in parallel to the content stored in this object.
Applies mappings in parallel to the content stored in this object. This function is analogous to mapContent(), but invocations to mapping functions are wrapped in Future objects, and therefore run concurrently. The resulting future completes when all mappings are done.
- mapFiles
optional mapping function on files
- mapFolders
optional mapping function on folders
- ec
the execution context
- returns
a Future with the result of the mapping
- def mapContentParallelTried(mapFiles: Option[(FILE) => Try[FILE]] = None, mapFolders: Option[(FOLDER) => Try[FOLDER]] = None)(implicit ec: ExecutionContext): Future[(FolderContent[ID, FILE, FOLDER], List[Failure[ID]])]
Applies mappings in parallel to the content stored in this object that can fail.
Applies mappings in parallel to the content stored in this object that can fail. This function is analogous to mapContentParallel(), but the passed in mapping functions return a Try. Result is a Future with a tuple that contains a FolderContent object with all the files and folders that could be mapped successfully, and a list with failures that occurred during mapping.
- mapFiles
optional mapping function on files
- mapFolders
optional mapping function on folders
- ec
the execution context
- returns
a Future with the results of the mapping
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)