com.github.roroche.eoplantumlbuilder.urls.FilesUrls.kt Maven / Gradle / Ivy
package com.github.roroche.eoplantumlbuilder.urls
import java.io.File
import java.net.URL
/**
* Utility class that builds URL from File.
*
* @property files The File to be transformed into URL.
*/
class FilesUrls(
private val files: List
) : Urls {
/**
* @return The list of URL.
*/
override fun list(): List {
return files.map { file ->
file.toURI().toURL()
}
}
}