- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Encapsulates a value in JSON
Java wrapper for Qt class QJsonValue
-
Nested Class Summary
-
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
(boolean other) Overloaded function forassign(io.qt.core.QJsonValue)
.final void
assign
(double other) Overloaded function forassign(io.qt.core.QJsonValue)
.final void
assign
(int other) Overloaded function forassign(io.qt.core.QJsonValue)
.final void
assign
(long other) Overloaded function forassign(io.qt.core.QJsonValue)
.final void
assign
(QJsonArray other) Overloaded function forassign(io.qt.core.QJsonValue)
.final void
assign
(QJsonObject other) Overloaded function forassign(io.qt.core.QJsonValue)
.final void
assign
(QJsonValue other) final void
assign
(QJsonValue.Type other) Overloaded function forassign(io.qt.core.QJsonValue)
.final void
Overloaded function forassign(io.qt.core.QJsonValue)
.clone()
Creates and returns a copy of this object.final boolean
equals
(boolean other) Overloaded function forequals(io.qt.core.QJsonValue)
.final boolean
equals
(double other) Overloaded function forequals(io.qt.core.QJsonValue)
.final boolean
equals
(int other) Overloaded function forequals(io.qt.core.QJsonValue)
.final boolean
equals
(long other) Overloaded function forequals(io.qt.core.QJsonValue)
.final boolean
equals
(QJsonArray other) Overloaded function forequals(io.qt.core.QJsonValue)
.final boolean
equals
(QJsonObject other) Overloaded function forequals(io.qt.core.QJsonValue)
.final boolean
equals
(QJsonValue other) final boolean
equals
(QJsonValue.Type other) Overloaded function forequals(io.qt.core.QJsonValue)
.final boolean
Overloaded function forequals(io.qt.core.QJsonValue)
.boolean
static QJsonValue
fromVariant
(Object variant) final QJsonValue
get
(long i) final QJsonValue
final QJsonValue
getArrayValue
(long i) Delegate forget(long)
.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 long
Overloaded function fortoInteger(long)
withdefaultValue = 0
.final long
toInteger
(long 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
- Parameters:
a
-
-
QJsonValue
- Parameters:
o
-
-
QJsonValue
- Parameters:
other
-
-
QJsonValue
- Parameters:
arg__1
-
-
QJsonValue
- Parameters:
s
-
-
QJsonValue
public QJsonValue(boolean b) - Parameters:
b
-
-
QJsonValue
public QJsonValue(double n) - Parameters:
n
-
-
QJsonValue
public QJsonValue(int n) - Parameters:
n
-
-
QJsonValue
public QJsonValue(long v) - Parameters:
v
-
-
QJsonValue
public QJsonValue()Overloaded constructor for
QJsonValue(io.qt.core.QJsonValue.Type)
witharg__1 = io.qt.core.QJsonValue.Type.Null
.
-
-
Method Details
-
isArray
- Returns:
-
isBool
- Returns:
-
isDouble
- Returns:
-
isNull
- Returns:
-
isObject
- Returns:
-
isString
- Returns:
-
isUndefined
- Returns:
-
writeTo
See
operator<<(QDataStream&,
QJsonValue) - Parameters:
arg__1
-
-
assign
- Parameters:
other
-
-
equals
- Parameters:
other
-- Returns:
-
readFrom
See
operator>>(QDataStream&,
QJsonValue&) - Parameters:
arg__1
-
-
get
- Parameters:
key
-- Returns:
-
get
- Parameters:
i
-- Returns:
-
swap
- Parameters:
other
-
-
toArray
- Returns:
-
toArray
- Parameters:
defaultValue
-- Returns:
-
toBoolean
- Parameters:
defaultValue
-- Returns:
-
toDouble
- Parameters:
defaultValue
-- Returns:
-
toInt
- Parameters:
defaultValue
-- Returns:
-
toInteger
- Parameters:
defaultValue
-- Returns:
- Since:
- This function was introduced in Qt 6.0.
-
toObject
- Returns:
-
toObject
- Parameters:
defaultValue
-- Returns:
-
toString
-
toString
- Parameters:
defaultValue
-- Returns:
-
toVariant
- Returns:
-
type
- Returns:
-
fromVariant
- Parameters:
variant
-- Returns:
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QJsonValue)
. -
clone
Creates and returns a copy of this object.
-
assign
Overloaded function for
assign(io.qt.core.QJsonValue)
. -
assign
Overloaded function for
assign(io.qt.core.QJsonValue)
. -
assign
Overloaded function for
assign(io.qt.core.QJsonValue)
. -
assign
Overloaded function for
assign(io.qt.core.QJsonValue)
. -
assign
Overloaded function for
assign(io.qt.core.QJsonValue)
. -
assign
Overloaded function for
assign(io.qt.core.QJsonValue)
. -
assign
Overloaded function for
assign(io.qt.core.QJsonValue)
. -
assign
Overloaded function for
assign(io.qt.core.QJsonValue)
. -
equals
Overloaded function for
equals(io.qt.core.QJsonValue)
. -
equals
Overloaded function for
equals(io.qt.core.QJsonValue)
. -
equals
Overloaded function for
equals(io.qt.core.QJsonValue)
. -
equals
Overloaded function for
equals(io.qt.core.QJsonValue)
. -
equals
Overloaded function for
equals(io.qt.core.QJsonValue)
. -
equals
Overloaded function for
equals(io.qt.core.QJsonValue)
. -
equals
Overloaded function for
equals(io.qt.core.QJsonValue)
. -
equals
Overloaded function for
equals(io.qt.core.QJsonValue)
. -
getObjectValue
Delegate for
get(java.lang.String)
. -
getArrayValue
Delegate for
get(long)
. -
toBoolean
Overloaded function for
toBoolean(boolean)
withdefaultValue = false
. -
toDouble
Overloaded function for
toDouble(double)
withdefaultValue = 0
. -
toInt
Overloaded function for
toInt(int)
withdefaultValue = 0
. -
toInteger
Overloaded function for
toInteger(long)
withdefaultValue = 0
.
-