case class Str(value: String) extends Value with Product with Serializable
- Alphabetic
- By Inheritance
- Str
- Serializable
- Product
- Equals
- Value
- Writable
- Readable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Str(value: String)
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
- def apply(s: Selector): Value
- Definition Classes
- Value
- def arr: ArrayBuffer[Value]
Returns the elements of this Value, fails if it is not a ujson.Arr
- def arrOpt: Option[ArrayBuffer[Value]]
Returns The optional elements of this Value in case this Value is a 'Arr'.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def bool: Boolean
Returns the
Boolean
value of this Value, fails if it is not a ujson.BoolReturns the
Boolean
value of this Value, fails if it is not a ujson.Bool- Definition Classes
- Value
- def boolOpt: Option[Boolean]
Returns an Optional
Boolean
value of this Value in case this Value is a 'Bool'. - def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isNull: Boolean
Returns true if the value of this Value is ujson.Null, false otherwise
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def num: Double
Returns the
Double
value of this Value, fails if it is not a ujson.Num - def numOpt: Option[Double]
Returns an Option[Double] in case this Value is a 'Num'.
- def obj: LinkedHashMap[String, Value]
Returns the key/value map of this Value, fails if it is not a ujson.Obj
- def objOpt: Option[LinkedHashMap[String, Value]]
Returns an Optional key/value map of this Value in case this Value is a 'Obj'.
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def render(indent: Int = -1, escapeUnicode: Boolean = false): String
- Definition Classes
- Value
- def str: String
Returns the
String
value of this Value, fails if it is not a ujson.Str - def strOpt: Option[String]
Returns an Optional
String
value of this Value in case this Value is a 'String'. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- Value → AnyRef → Any
- def transform[T](f: Visitor[_, T]): T
- def update(s: Selector, f: (Value) => Value): Unit
Update a value in-place.
Update a value in-place. Takes an
Int
or aString
, through the implicitly-constructe Value.Selector type.We cannot just overload
update
ons: Int
ands: String
because of type inference problems in Scala 2.11.- Definition Classes
- Value
- def update(s: Selector, v: Value): Unit
- Definition Classes
- Value
- val value: String
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def writeBytesTo(out: OutputStream): Unit
- Definition Classes
- Value → Writable
- def writeBytesTo(out: OutputStream, indent: Int = -1, escapeUnicode: Boolean = false): Unit
- Definition Classes
- Value