fabric

package fabric

Type members

Classlikes

final case class Arr(value: Vector[Json]) extends AnyVal with Json

Arr represents an array (Vector[Value])

Arr represents an array (Vector[Value])

final case class Bool(value: Boolean) extends AnyVal with Json

Bool represents a boolean value

Bool represents a boolean value

case class ConversionException(message: String) extends RuntimeException
object Cryo
sealed trait Json

Value represents the base sealed trait for all representable types in fabric.

Value represents the base sealed trait for all representable types in fabric.

Companion:
object
object Json
Companion:
class
sealed trait MergeType

MergeType is used to determine how merging of two Values should occur

MergeType is used to determine how merging of two Values should occur

Companion:
object
object MergeType
Companion:
class
sealed trait Null extends Json
Companion:
object
object Null extends Null

Null represents a null Value

Null represents a null Value

Companion:
class
sealed trait Num extends Json
case class NumDec(value: BigDecimal) extends Num

NumDec represents a numeric value and wraps a BigDecimal

NumDec represents a numeric value and wraps a BigDecimal

case class NumInt(value: Long) extends Num

NumInt represents a numeric value and wraps a Long

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, Value)

Obj represents a Map of key-value pairs (String, Value)

Companion:
object
object Obj
Companion:
class
final class Path(val entries: List[String]) extends AnyVal

Path is a convenience wrapper to represent paths for lookups or changes in Value

Path is a convenience wrapper to represent paths for lookups or changes in Value

Companion:
object
object Path
Companion:
class
final case class Str(value: String) extends AnyVal with Json

Str represents a String

Str represents a String

Companion:
object
object Str
Companion:
class
sealed trait ValueType[T]

ValueType represents the possible types of Value

ValueType represents the possible types of Value

Companion:
object
case object ValueType
Companion:
class

Value members

Concrete methods

def arr(values: Json*): Arr

Create an Arr from the params

Create an Arr from the params

def num(value: String): Num

Create a Num from the supplied String

Create a Num from the supplied String

def obj(params: (String, Json)*): Obj

Create an Obj from the params

Create an Obj from the params

Implicits

Implicits

implicit def bool(b: Boolean): Bool

Create a Bool from the supplied Boolean

Create a Bool from the supplied Boolean

implicit def doubles2Arr(seq: Seq[Double]): Arr
implicit def ints2Arr(seq: Seq[Int]): Arr
implicit def listMap2Obj(map: ListMap[String, Json]): Obj
implicit def map2Obj(map: Map[String, Json]): Obj
implicit def num(value: Double): Num

Create a Num from the supplied Double

Create a Num from the supplied Double

implicit def num(value: BigDecimal): Num

Create a Num from the supplied BigDecimal

Create a Num from the supplied BigDecimal

implicit def num(value: Int): Num
implicit def num(value: Long): Num
implicit def seq2Arr(seq: Seq[Json]): Arr
implicit def str(s: String): Str

Create a Str from the supplied String

Create a Str from the supplied String

implicit def string2Path(s: String): Path