gigahorse.EncodedString.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gigahorse-core_2.13 Show documentation
Show all versions of gigahorse-core_2.13 Show documentation
Gigahorse is an HTTP client for Scala with multiple backend support.
The newest version!
/**
* This code is generated using [[https://www.scala-sbt.org/contraband/ sbt-contraband]].
*/
// DO NOT EDIT MANUALLY
package gigahorse
final class EncodedString private (
val string: String,
val charset: java.nio.charset.Charset) extends Serializable {
override def equals(o: Any): Boolean = o match {
case x: EncodedString => (this.string == x.string) && (this.charset == x.charset)
case _ => false
}
override def hashCode: Int = {
37 * (37 * (37 * (17 + "gigahorse.EncodedString".##) + string.##) + charset.##)
}
override def toString: String = {
"EncodedString(" + string + ", " + charset + ")"
}
private[this] def copy(string: String = string, charset: java.nio.charset.Charset = charset): EncodedString = {
new EncodedString(string, charset)
}
def withString(string: String): EncodedString = {
copy(string = string)
}
def withCharset(charset: java.nio.charset.Charset): EncodedString = {
copy(charset = charset)
}
}
object EncodedString {
def apply(string: String, charset: java.nio.charset.Charset): EncodedString = new EncodedString(string, charset)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy