org.danilopianini.plagiarismdetector.utils.HostingService.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of code-plagiarism-detector Show documentation
Show all versions of code-plagiarism-detector Show documentation
A tool for scanning existing projects in search of potential signs of plagiarism
package org.danilopianini.plagiarismdetector.utils
/**
* An interface modeling a hosting service.
*/
sealed interface HostingService {
/**
* The name of the hosting service.
*/
val name: String
/**
* The hostname of the hosting service.
*/
val host: String
}
/**
* GitHub hosting service.
*/
object GitHub : HostingService {
override val name: String = "github"
override val host: String = "$name.com"
}
/**
* Bitbucket hosting service.
*/
object BitBucket : HostingService {
override val name: String = "bitbucket"
override val host: String = "$name.org"
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy