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

sbt.protocol.TerminalCapabilitiesQuery.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 TerminalCapabilitiesQuery private (
  val boolean: Option[String],
  val numeric: Option[String],
  val string: Option[String]) extends sbt.protocol.CommandMessage() with Serializable {
  
  
  
  override def equals(o: Any): Boolean = this.eq(o.asInstanceOf[AnyRef]) || (o match {
    case x: TerminalCapabilitiesQuery => (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.TerminalCapabilitiesQuery".##) + boolean.##) + numeric.##) + string.##)
  }
  override def toString: String = {
    "TerminalCapabilitiesQuery(" + boolean + ", " + numeric + ", " + string + ")"
  }
  private[this] def copy(boolean: Option[String] = boolean, numeric: Option[String] = numeric, string: Option[String] = string): TerminalCapabilitiesQuery = {
    new TerminalCapabilitiesQuery(boolean, numeric, string)
  }
  def withBoolean(boolean: Option[String]): TerminalCapabilitiesQuery = {
    copy(boolean = boolean)
  }
  def withBoolean(boolean: String): TerminalCapabilitiesQuery = {
    copy(boolean = Option(boolean))
  }
  def withNumeric(numeric: Option[String]): TerminalCapabilitiesQuery = {
    copy(numeric = numeric)
  }
  def withNumeric(numeric: String): TerminalCapabilitiesQuery = {
    copy(numeric = Option(numeric))
  }
  def withString(string: Option[String]): TerminalCapabilitiesQuery = {
    copy(string = string)
  }
  def withString(string: String): TerminalCapabilitiesQuery = {
    copy(string = Option(string))
  }
}
object TerminalCapabilitiesQuery {
  
  def apply(boolean: Option[String], numeric: Option[String], string: Option[String]): TerminalCapabilitiesQuery = new TerminalCapabilitiesQuery(boolean, numeric, string)
  def apply(boolean: String, numeric: String, string: String): TerminalCapabilitiesQuery = new TerminalCapabilitiesQuery(Option(boolean), Option(numeric), Option(string))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy