KSON

dev.hnaderi.k8s.utils.KSON$
See theKSON companion trait
object KSON

Attributes

Companion:
trait
Source:
KSON.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
KSON.type

Members list

Concise view

Type members

Classlikes

final case class KArr(value: Iterable[KSON]) extends KSON

Attributes

Source:
KSON.scala
Graph
Supertypes
trait KSON
trait Product
trait Equals
class Object
trait Matchable
class Any
final case class KBool(value: Boolean) extends KSON

Attributes

Source:
KSON.scala
Graph
Supertypes
trait KSON
trait Product
trait Equals
class Object
trait Matchable
class Any
final case class KDouble(value: Double) extends KSON

Attributes

Source:
KSON.scala
Graph
Supertypes
trait KSON
trait Product
trait Equals
class Object
trait Matchable
class Any
final case class KInt(value: Int) extends KSON

Attributes

Source:
KSON.scala
Graph
Supertypes
trait KSON
trait Product
trait Equals
class Object
trait Matchable
class Any
final case class KLong(value: Long) extends KSON

Attributes

Source:
KSON.scala
Graph
Supertypes
trait KSON
trait Product
trait Equals
class Object
trait Matchable
class Any
case object KNull extends KSON

Attributes

Source:
KSON.scala
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait KSON
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type
KNull.type
final case class KObj(value: Iterable[(String, KSON)]) extends KSON

Attributes

Source:
KSON.scala
Graph
Supertypes
trait KSON
trait Product
trait Equals
class Object
trait Matchable
class Any
final case class KString(value: String) extends KSON

Attributes

Source:
KSON.scala
Graph
Supertypes
trait KSON
trait Product
trait Equals
class Object
trait Matchable
class Any

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source:
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source:
Mirror.scala

Implicits

Implicits

Attributes

Source:
KSON.scala
implicit val encoder: Encoder[KSON]

Attributes

Source:
KSON.scala
implicit val Right.apply[Nothing,Int](i) caseKLong(l)iflongWrapper(l).isValidInt=> Right.apply[Nothing,Int](l.toInt) caseKDouble(l)ifdoubleWrapper(`l₂`).isValidInt=> Right.apply[Nothing,Int](`l₂`.toInt) case_=> Left.apply[String,Nothing]("Notavalidinteger!") } overridedeflong(`t₃`:KSON):Either[String,Long]=`t₃`match{ caseKLong(l)=> Right.apply[Nothing,Long](`l₃`) caseKInt(i)=> Right.apply[Nothing,Long](`i₂`.toLong) caseKDouble(l)ifdoubleWrapper(`l₄`).isWhole=> Right.apply[Nothing,Long](`l₄`.toLong) case_=> Left.apply[String,Nothing]("Notavalidlong!") } overridedefdouble(`t₄`:KSON):Either[String,Double]=`t₄`match{ caseKDouble(l)=> Right.apply[Nothing,Double](`l₅`) caseKLong(l)=> Right.apply[Nothing,Double](`l₆`.toDouble) caseKInt(i)=> Right.apply[Nothing,Double](`i₃`.toDouble) case_=> Left.apply[String,Nothing]("Notavaliddouble!") } overridedefbool(`t₅`:KSON):Either[String,Boolean]=`t₅`match{ caseKBool(b)=> Right.apply[Nothing,Boolean](b) case_=> Left.apply[String,Nothing]("Notabooleanvalue!") } overridedefarray(`t₆`:KSON):Either[String,Iterable[KSON]]=`t₆`match{ caseKArr(vs)=> Right.apply[Nothing,Iterable[KSON]](vs) case_=> Left.apply[String,Nothing]("Notanarray!") } overridedefobj(`t₇`:KSON):Either[String,Iterable[Tuple2[String,KSON]]]=`t₇`match{ caseKObj(fs)=> Right.apply[Nothing,Iterable[Tuple2[String,KSON]]](fs) case_=> Left.apply[String,Nothing]("Notanobject!") } } (new$anon():Reader[KSON]) }" t="n"class="documentableName ">readerInstance: Reader[KSON]

Attributes

Source:
KSON.scala