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

sbt.protocol.TerminalCapabilitiesResponse.scala Maven / Gradle / Ivy

The newest version!
/**
 * This code is generated using [[https://www.scala-sbt.org/contraband/ sbt-contraband]].
 */

// DO NOT EDIT MANUALLY
package sbt.protocol
final class TerminalCapabilitiesResponse private (
  val boolean: Option[Boolean],
  val numeric: Option[Int],
  val string: Option[String]) extends sbt.protocol.EventMessage() with Serializable {
  
  
  
  override def equals(o: Any): Boolean = this.eq(o.asInstanceOf[AnyRef]) || (o match {
    case x: TerminalCapabilitiesResponse => (this.boolean == x.boolean) && (this.numeric == x.numeric) && (this.string == x.string)
    case _ => false
  })
  override def hashCode: Int = {
    37 * (37 * (37 * (37 * (17 + "sbt.protocol.TerminalCapabilitiesResponse".##) + boolean.##) + numeric.##) + string.##)
  }
  override def toString: String = {
    "TerminalCapabilitiesResponse(" + boolean + ", " + numeric + ", " + string + ")"
  }
  private[this] def copy(boolean: Option[Boolean] = boolean, numeric: Option[Int] = numeric, string: Option[String] = string): TerminalCapabilitiesResponse = {
    new TerminalCapabilitiesResponse(boolean, numeric, string)
  }
  def withBoolean(boolean: Option[Boolean]): TerminalCapabilitiesResponse = {
    copy(boolean = boolean)
  }
  def withBoolean(boolean: Boolean): TerminalCapabilitiesResponse = {
    copy(boolean = Option(boolean))
  }
  def withNumeric(numeric: Option[Int]): TerminalCapabilitiesResponse = {
    copy(numeric = numeric)
  }
  def withNumeric(numeric: Int): TerminalCapabilitiesResponse = {
    copy(numeric = Option(numeric))
  }
  def withString(string: Option[String]): TerminalCapabilitiesResponse = {
    copy(string = string)
  }
  def withString(string: String): TerminalCapabilitiesResponse = {
    copy(string = Option(string))
  }
}
object TerminalCapabilitiesResponse {
  
  def apply(boolean: Option[Boolean], numeric: Option[Int], string: Option[String]): TerminalCapabilitiesResponse = new TerminalCapabilitiesResponse(boolean, numeric, string)
  def apply(boolean: Boolean, numeric: Int, string: String): TerminalCapabilitiesResponse = new TerminalCapabilitiesResponse(Option(boolean), Option(numeric), Option(string))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy