java.lang.Object
io.qt.internal.NativeUtility.Object
io.qt.QtObject
io.qt.core.QJsonValue
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Encapsulates a value in JSON
Java wrapper for Qt's class QJsonValue
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionOverloaded constructor forQJsonValue(io.qt.core.QJsonValue.Type)
witharg__1 = io.qt.core.QJsonValue.Type.Null
.QJsonValue
(boolean b) QJsonValue
(double n) QJsonValue
(int n) QJsonValue
(long v) QJsonValue
(QJsonValue other) QJsonValue
(QJsonValue.Type arg__1) protected
Constructor for internal use only.QJsonValue
(String s) -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.static QJsonValue
fromVariant
(Object variant) final QJsonValue
getArrayValue
(int i) final QJsonValue
getObjectValue
(String key) int
hashCode()
final boolean
isArray()
final boolean
isBool()
final boolean
isDouble()
final boolean
isNull()
final boolean
isObject()
final boolean
isString()
final boolean
void
readFrom
(QDataStream arg__1) final void
swap
(QJsonValue other) final QJsonArray
toArray()
final QJsonArray
toArray
(QJsonArray defaultValue) final boolean
Overloaded function fortoBoolean(boolean)
withdefaultValue = false
.final boolean
toBoolean
(boolean defaultValue) final double
toDouble()
Overloaded function fortoDouble(double)
withdefaultValue = 0
.final double
toDouble
(double defaultValue) final int
toInt()
Overloaded function fortoInt(int)
withdefaultValue = 0
.final int
toInt
(int defaultValue) final QJsonObject
toObject()
final QJsonObject
toObject
(QJsonObject defaultValue) final String
toString()
final String
final Object
final QJsonValue.Type
type()
void
writeTo
(QDataStream arg__1) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QJsonValue
public QJsonValue()Overloaded constructor for
QJsonValue(io.qt.core.QJsonValue.Type)
witharg__1 = io.qt.core.QJsonValue.Type.Null
. -
QJsonValue
-
QJsonValue
public QJsonValue(boolean b) -
QJsonValue
-
QJsonValue
-
QJsonValue
-
QJsonValue
-
QJsonValue
public QJsonValue(double n) -
QJsonValue
public QJsonValue(int n) -
QJsonValue
public QJsonValue(long v) -
QJsonValue
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
isArray
-
isBool
-
isDouble
-
isNull
-
isObject
-
isString
-
isUndefined
-
writeTo
-
readFrom
-
getObjectValue
-
getArrayValue
-
swap
-
toArray
-
toArray
-
toBoolean
Overloaded function for
toBoolean(boolean)
withdefaultValue = false
. -
toBoolean
-
toDouble
Overloaded function for
toDouble(double)
withdefaultValue = 0
. -
toDouble
-
toInt
Overloaded function for
toInt(int)
withdefaultValue = 0
. -
toInt
-
toObject
-
toObject
-
toString
-
toString
-
toVariant
-
type
-
fromVariant
-
equals
Description copied from class:QtObject
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
clone
-