fabric
package fabric
- Source
- package.scala
- Alphabetic
- By Inheritance
- fabric
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final case class Arr(value: Vector[Json]) extends AnyVal with Json with Product with Serializable
Arr represents an array (Vector[Json])
- final case class Bool(value: Boolean) extends AnyVal with Json with Product with Serializable
Bool represents a boolean value
- case class ConversionException(message: String) extends RuntimeException with Product with Serializable
- sealed trait Json extends Any
Json represents the base sealed trait for all representable types in Fabric.
- sealed trait JsonType[T] extends AnyRef
JsonType represents the possible types of Json
- sealed trait MergeType extends AnyRef
MergeType is used to determine how merging of two Values should occur
- sealed trait Null extends Json
- sealed trait Num extends Json
- case class NumDec(value: BigDecimal) extends Num with Product with Serializable
NumDec represents a numeric value and wraps a BigDecimal
- case class NumInt(value: Long) extends Num with Product with Serializable
NumInt represents a numeric value and wraps a Long
- final class Obj extends AnyVal with Json
Obj represents a Map of key-value pairs (String, Json)
- final case class Path(entries: List[String]) extends AnyVal with Product with Serializable
Path is a convenience wrapper to represent paths for lookups or changes in Json
- final case class Str(value: String) extends AnyVal with Json with Product with Serializable
Str represents a String
Value Members
- def arr(values: Json*): Arr
Create an Arr from the params
- implicit def bool(b: Boolean): Bool
Create a Bool from the supplied Boolean
- implicit def doubles2Arr(seq: Seq[Double]): Arr
- implicit def ints2Arr(seq: Seq[Int]): Arr
- implicit def map2Obj(map: Map[String, Json]): Obj
- implicit def num(value: Long): Num
- implicit def num(value: Int): Num
- implicit def num(value: BigDecimal): Num
Create a Num from the supplied BigDecimal
- implicit def num(value: Double): Num
Create a Num from the supplied Double
- def num(value: String): Num
Create a Num from the supplied String
- def obj(params: (String, Json)*): Obj
Create an Obj from the params
- implicit def seq2Arr(seq: Seq[Json]): Arr
- implicit def str(s: String): Str
Create a Str from the supplied String
- implicit def string2Path(s: String): Path
- object Cryo
- object Json
- case object JsonType extends Product with Serializable
- object MergeType
- object Null extends Null
Null represents a null Json
- object Obj
- object Path extends Serializable
- object Str extends Serializable