object codecs extends PlatformSpecificInstances
- Alphabetic
- By Inheritance
- codecs
- PlatformSpecificInstances
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- implicit val bigDecimalStringCodec: StringCodec[BigDecimal]
Defines a StringCodec instance for
BigDecimal
.Defines a StringCodec instance for
BigDecimal
.// Decoding example scala> StringDecoder[BigDecimal].decode("2") res1: StringResult[BigDecimal] = Right(2) // Encoding example scala> StringEncoder[BigDecimal].encode(BigDecimal(2D)) res2: String = 2.0
Example: - implicit val bigIntStringCodec: StringCodec[BigInt]
Defines a StringCodec instance for
BigInt
.Defines a StringCodec instance for
BigInt
.// Decoding example scala> StringDecoder[BigInt].decode("2") res1: StringResult[BigInt] = Right(2) // Encoding example scala> StringEncoder[BigInt].encode(BigInt(2)) res2: String = 2
Example: - implicit val booleanStringCodec: StringCodec[Boolean]
Defines a StringCodec instance for
Boolean
.Defines a StringCodec instance for
Boolean
.// Decoding example scala> StringDecoder[Boolean].decode("true") res1: StringResult[Boolean] = Right(true) // Encoding example scala> StringEncoder[Boolean].encode(true) res2: String = true
Example: - implicit val byteStringCodec: StringCodec[Byte]
Defines a StringCodec instance for
Byte
.Defines a StringCodec instance for
Byte
.// Decoding example scala> StringDecoder[Byte].decode("2") res1: StringResult[Byte] = Right(2) // Encoding example scala> StringEncoder[Byte].encode(2) res2: String = 2
Example: - implicit val charStringCodec: StringCodec[Char]
Defines a StringCodec instance for
Char
.Defines a StringCodec instance for
Char
.// Decoding example scala> StringDecoder[Char].decode("a") res1: StringResult[Char] = Right(a) // Encoding example scala> StringEncoder[Char].encode('a') res2: String = a
Example: - def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- implicit val doubleStringCodec: StringCodec[Double]
Defines a StringCodec instance for
Double
.Defines a StringCodec instance for
Double
.// Decoding example scala> StringDecoder[Double].decode("2") res1: StringResult[Double] = Right(2.0) // Encoding example scala> StringEncoder[Double].encode(2D) res2: String = 2.0
Example: - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- implicit val fileStringCodec: StringCodec[File]
Defines a StringCodec instance for
java.io.File
.Defines a StringCodec instance for
java.io.File
.- Definition Classes
- PlatformSpecificInstances
// Decoding example scala> import java.io.File scala> StringDecoder[File].decode("/home/nrinaudo") res1: StringResult[File] = Right(/home/nrinaudo) // Encoding example scala> StringEncoder[File].encode(new File("/home/nrinaudo")) res2: String = /home/nrinaudo
Example: - def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- implicit val floatStringCodec: StringCodec[Float]
Defines a StringCodec instance for
Float
.Defines a StringCodec instance for
Float
.// Decoding example scala> StringDecoder[Float].decode("2") res1: StringResult[Float] = Right(2.0) // Encoding example scala> StringEncoder[Float].encode(2F) res2: String = 2.0
Example: - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- implicit val intStringCodec: StringCodec[Int]
Defines a StringCodec instance for
Int
.Defines a StringCodec instance for
Int
.// Decoding example scala> StringDecoder[Int].decode("2") res1: StringResult[Int] = Right(2) // Encoding example scala> StringEncoder[Int].encode(2) res2: String = 2
Example: - final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- implicit def javaEnumStringCodec[T <: Enum[T]](implicit tag: ClassTag[T]): StringCodec[T]
Defines a StringCodec instance for Java enumerations.
Defines a StringCodec instance for Java enumerations.
- Annotations
- @SuppressWarnings()
scala> import java.nio.file.AccessMode // Decoding example scala> StringDecoder[AccessMode].decode("READ") res1: StringResult[AccessMode] = Right(READ) // Encoding example scala> StringEncoder[AccessMode].encode(AccessMode.READ) res2: String = READ
Example: - implicit val longStringCodec: StringCodec[Long]
Defines a StringCodec instance for
Long
.Defines a StringCodec instance for
Long
.// Decoding example scala> StringDecoder[Long].decode("2") res1: StringResult[Long] = Right(2) // Encoding example scala> StringEncoder[Long].encode(2L) res2: String = 2
Example: - final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- implicit val pathStringCodec: StringCodec[Path]
Defines a StringCodec instance for
java.nio.file.Path
.Defines a StringCodec instance for
java.nio.file.Path
.- Definition Classes
- PlatformSpecificInstances
- Annotations
- @SuppressWarnings()
// Decoding example scala> import java.nio.file.{Path, Paths} scala> StringDecoder[Path].decode("/home/nrinaudo") res1: StringResult[Path] = Right(/home/nrinaudo) // Encoding example scala> StringEncoder[Path].encode(Paths.get("/home/nrinaudo")) res2: String = /home/nrinaudo
Example: - implicit val patternStringCodec: StringCodec[Pattern]
Defines a StringCodec instance for
Pattern
.Defines a StringCodec instance for
Pattern
.scala> import java.util.regex.Pattern // Decoding example scala> StringDecoder[Pattern].decode("[a-z]") res1: StringResult[Pattern] = Right([a-z]) // Encoding example scala> StringEncoder[Pattern].encode(Pattern.compile("[a-z]")) res2: String = [a-z]
Example: - implicit val regexStringCodec: StringCodec[Regex]
Defines a StringCodec instance for
Regex
.Defines a StringCodec instance for
Regex
.scala> import scala.util.matching.Regex // Decoding example scala> StringDecoder[Regex].decode("[a-z]") res1: StringResult[Regex] = Right([a-z]) // Encoding example scala> StringEncoder[Regex].encode("[a-z]".r) res2: String = [a-z]
Example: - implicit val shortStringCodec: StringCodec[Short]
Defines a StringCodec instance for
Short
.Defines a StringCodec instance for
Short
.// Decoding example scala> StringDecoder[Short].decode("2") res1: StringResult[Short] = Right(2) // Encoding example scala> StringEncoder[Short].encode(2.toShort) res2: String = 2
Example: - implicit val stringStringCodec: StringCodec[String]
Defines a StringCodec instance for
String
.Defines a StringCodec instance for
String
.// Decoding example scala> StringDecoder[String].decode("foobar") res1: StringResult[String] = Right(foobar) // Encoding example scala> StringEncoder[String].encode("foobar") res2: String = foobar
Example: - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- implicit val uriStringCodec: StringCodec[URI]
Defines a StringCodec instance for
java.net.URI
.Defines a StringCodec instance for
java.net.URI
.- Definition Classes
- PlatformSpecificInstances
// Decoding example scala> import java.net.URI scala> StringDecoder[URI].decode("http://localhost:8080") res1: StringResult[URI] = Right(http://localhost:8080) // Encoding example scala> StringEncoder[URI].encode(new URI("http://localhost:8080")) res2: String = http://localhost:8080
Example: - implicit val urlStringCodec: StringCodec[URL]
Defines a StringCodec instance for
java.net.URL
.Defines a StringCodec instance for
java.net.URL
.- Definition Classes
- PlatformSpecificInstances
// Decoding example scala> import java.net.URL scala> StringDecoder[URL].decode("http://localhost:8080") res1: StringResult[URL] = Right(http://localhost:8080) // Encoding example scala> StringEncoder[URL].encode(new URL("http://localhost:8080")) res2: String = http://localhost:8080
Example: - implicit val uuidStringCodec: StringCodec[UUID]
Defines a StringCodec instance for
java.util.UUID
.Defines a StringCodec instance for
java.util.UUID
.// Decoding example scala> import java.util.UUID scala> StringDecoder[UUID].decode("123e4567-e89b-12d3-a456-426655440000") res1: StringResult[UUID] = Right(123e4567-e89b-12d3-a456-426655440000) // Encoding example scala> StringEncoder[UUID].encode(UUID.fromString("123e4567-e89b-12d3-a456-426655440000")) res2: String = 123e4567-e89b-12d3-a456-426655440000
Example: - final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()