All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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()
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy