java.lang.Object
io.qt.QtObject
io.qt.core.QJsonValue
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Encapsulates a value in JSON
Java wrapper for Qt class QJsonValue
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ConstructorDescriptionOverloaded 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) QJsonValue
(String s) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
assign
(QJsonValue other) clone()
Creates and returns a copy of this object.boolean
static QJsonValue
fromVariant
(Object variant) final QJsonValue
get
(int i) final QJsonValue
final QJsonValue
getArrayValue
(int i) Delegate forget(int)
.final QJsonValue
getObjectValue
(String key) Delegate forget(java.lang.String)
.int
hashCode()
Returns the objects's hash code computed byqHash(QJsonValue)
.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) Seeoperator>>(QDataStream&,
QJsonValue&) 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) Seeoperator<<(QDataStream&,
QJsonValue) 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)
-
-
Method Details
-
isArray
-
isBool
-
isDouble
-
isNull
-
isObject
-
isString
-
isUndefined
-
writeTo
See
operator<<(QDataStream&,
QJsonValue) -
assign
-
readFrom
See
operator>>(QDataStream&,
QJsonValue&) -
getObjectValue
Delegate for
get(java.lang.String)
. -
get
-
getArrayValue
Delegate for
get(int)
. -
get
-
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
-
hashCode
Returns the objects's hash code computed byqHash(QJsonValue)
. -
clone
Creates and returns a copy of this object.
-