fabric

package fabric

Type members

Classlikes

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

Arr represents an array (Vector[Value])

Arr represents an array (Vector[Value])

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

Bool represents a boolean value

Bool represents a boolean value

case
class ConversionException(message: String) extends RuntimeException
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 Value
Companion
object
object Null extends Null

Null represents a null Value

Null represents a null Value

Companion
class
sealed
trait Num extends Value
final case
class NumDec(value: BigDecimal) extends AnyVal with Num

NumDec represents a numeric value and wraps a BigDecimal

NumDec represents a numeric value and wraps a BigDecimal

final case
class NumInt(value: Long) extends AnyVal with 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 Value

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 Value

Str represents a String

Str represents a String

Companion
object
object Str
Companion
class
sealed
trait Value

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 Value
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: Value*): 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, Value)*): 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 map2Obj(map: Map[String, Value]): 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[Value]): 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