
sbt.internal.bsp.BuildTargetCapabilities.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protocol_2.12 Show documentation
Show all versions of protocol_2.12 Show documentation
sbt is an interactive build tool
/**
* This code is generated using [[https://www.scala-sbt.org/contraband/ sbt-contraband]].
*/
// DO NOT EDIT MANUALLY
package sbt.internal.bsp
/**
* @param canCompile This target can be compiled by the BSP server.
* @param canTest This target can be tested by the BSP server.
* @param canRun This target can be run by the BSP server.
*/
final class BuildTargetCapabilities private (
val canCompile: Boolean,
val canTest: Boolean,
val canRun: Boolean) extends Serializable {
override def equals(o: Any): Boolean = this.eq(o.asInstanceOf[AnyRef]) || (o match {
case x: BuildTargetCapabilities => (this.canCompile == x.canCompile) && (this.canTest == x.canTest) && (this.canRun == x.canRun)
case _ => false
})
override def hashCode: Int = {
37 * (37 * (37 * (37 * (17 + "sbt.internal.bsp.BuildTargetCapabilities".##) + canCompile.##) + canTest.##) + canRun.##)
}
override def toString: String = {
"BuildTargetCapabilities(" + canCompile + ", " + canTest + ", " + canRun + ")"
}
private[this] def copy(canCompile: Boolean = canCompile, canTest: Boolean = canTest, canRun: Boolean = canRun): BuildTargetCapabilities = {
new BuildTargetCapabilities(canCompile, canTest, canRun)
}
def withCanCompile(canCompile: Boolean): BuildTargetCapabilities = {
copy(canCompile = canCompile)
}
def withCanTest(canTest: Boolean): BuildTargetCapabilities = {
copy(canTest = canTest)
}
def withCanRun(canRun: Boolean): BuildTargetCapabilities = {
copy(canRun = canRun)
}
}
object BuildTargetCapabilities {
def apply(canCompile: Boolean, canTest: Boolean, canRun: Boolean): BuildTargetCapabilities = new BuildTargetCapabilities(canCompile, canTest, canRun)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy