class JsonValue extends JsonValueBase
Maps values other than JObject and JArray in JSON standards to primitive value types.
- Alphabetic
- By Inheritance
- JsonValue
- JsonValueBase
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
JsonValue(value: String)
Creates an instance of JsonValue of type JsonDataType.String.
Creates an instance of JsonValue of type JsonDataType.String.
- value
The String value to be set as JsonValue.
-
new
JsonValue(value: Date)
Creates an instance of JsonValue of type JsonDataType.String.
Creates an instance of JsonValue of type JsonDataType.String.
- value
The Date value to be set as JsonValue.
-
new
JsonValue(value: Double)
Creates an instance of JsonValue of type JsonDataType.Number.
Creates an instance of JsonValue of type JsonDataType.Number.
- value
The double value to be set as JsonValue.
-
new
JsonValue(value: BigDecimal)
Creates an instance of JsonValue of type JsonDataType.Number.
Creates an instance of JsonValue of type JsonDataType.Number.
- value
The BigDecimal value to be set as JsonValue.
-
new
JsonValue(value: Float)
Creates an instance of JsonValue of type JsonDataType.Number.
Creates an instance of JsonValue of type JsonDataType.Number.
- value
The float value to be set as JsonValue.
-
new
JsonValue(value: Long)
Creates an instance of JsonValue of type JsonDataType.Number.
Creates an instance of JsonValue of type JsonDataType.Number.
- value
The long value to be set as JsonValue.
-
new
JsonValue(value: Int)
Creates an instance of JsonValue of type JsonDataType.Number.
Creates an instance of JsonValue of type JsonDataType.Number.
- value
The int value to be set as JsonValue.
-
new
JsonValue(value: Short)
Creates an instance of JsonValue of type JsonDataType.Number.
Creates an instance of JsonValue of type JsonDataType.Number.
- value
The short value to be set as JsonValue.
-
new
JsonValue(value: Byte)
Creates an instance of JsonValue of type JsonDataType.Number.
Creates an instance of JsonValue of type JsonDataType.Number.
- value
The byte value to be set as JsonValue.
-
new
JsonValue(value: Boolean)
Creates an instance of JsonValue of type JsonDataType.Boolean.
Creates an instance of JsonValue of type JsonDataType.Boolean.
- value
The boolean value to be set as JsonValue.
-
new
JsonValue(value: Any)
Creates an instance of JsonValue with the specified object and type set to JsonDataType.Object.
Creates an instance of JsonValue with the specified object and type set to JsonDataType.Object.
- value
The object being used as jsonvalue.
- new JsonValue(internalJsonValue: JsonValue)
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(obj: Any): Boolean
Indicates whether some other object is "equal to" this one.
Indicates whether some other object is "equal to" this one.
The
equals
method implements an equivalence relation on non-null object references:- It is reflexive: for any non-null reference value
x
,x.equals(x)
should returntrue
. - It is symmetric: for any non-null reference values
x
andy
,x.equals(y)
should returntrue
if and only ify.equals(x)
returnstrue
. - It is transitive: for any non-null reference values
x
,y
, andz
, ifx.equals(y)
returnstrue
andy.equals(z)
returnstrue
, thenx.equals(z)
should returntrue
. - It is consistent: for any non-null reference values
x
andy
, multiple invocations ofx.equals(y)
consistently returntrue
or consistently returnfalse
, provided no information used inequals
comparisons on the objects is modified. - For any non-null reference value
x
,x.equals(null)
should returnfalse
.
The
equals
method for classObject
implements the most discriminating possible equivalence relation on objects; that is, for any non-null reference valuesx
andy
, this method returnstrue
if and only ifx
andy
refer to the same object (x == y
has the valuetrue
).Note that it is generally necessary to override the
hashCode
method whenever this method is overridden, so as to maintain the general contract for thehashCode
method, which states that equal objects must have equal hash codes.- obj
the reference object with which to compare.
- returns
true
if this object is the same as the obj argument;false
otherwise.
- Definition Classes
- JsonValue → AnyRef → Any
- See also
#hashCode()
java.util.HashMap
- It is reflexive: for any non-null reference value
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
getDataType: JsonDataType
Gets the type of the json object.
Gets the type of the json object.
- returns
The type of the json object.
-
def
getValue: AnyRef
Gets the value of the json object.
Gets the value of the json object.
- returns
The value of the json object.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toBoolean: Boolean
Attempts to convert JSON value to boolean.
Attempts to convert JSON value to boolean.
- returns
converted boolean value.
-
def
toByte: Byte
Attempts to convert JSON value to byte.
Attempts to convert JSON value to byte.
- returns
converted byte value.
-
def
toDate: Date
Attempts to convert JSON value to DateTime with standard format and culture.
Attempts to convert JSON value to DateTime with standard format and culture.
- returns
converted DateTime value.
-
def
toDecimal: BigDecimal
Attempts to convert JSON value to decimal.
Attempts to convert JSON value to decimal.
- returns
converted decimal value.
-
def
toDouble: Double
Attempts to convert JSON value to double.
Attempts to convert JSON value to double.
- returns
converted double value.
-
def
toFloat: Float
Attempts to convert JSON value to float.
Attempts to convert JSON value to float.
- returns
converted float value.
-
def
toInt16: Short
Attempts to convert JSON value to short.
Attempts to convert JSON value to short.
- returns
converted short value.
-
def
toInt32: Int
Attempts to convert JSON value to int.
Attempts to convert JSON value to int.
- returns
converted int value.
-
def
toInt64: Long
Attempts to convert JSON value to int 64.
Attempts to convert JSON value to int 64.
- returns
converted long value.
-
def
toJson: String
Gets the string representation of the JsonValueBase.
Gets the string representation of the JsonValueBase.
- returns
The string representation of the JsonValueBase.
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
toStringValue: String
Attempts to convert JSON value to string.
Attempts to convert JSON value to string.
- returns
converted string value.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated