- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Iterable<QJsonValue>
Encapsulates a JSON object
Java wrapper for Qt class QJsonObject
- Since:
- This class was introduced in Qt 5.0.
-
Constructor Summary
ConstructorDescriptionQJsonObject
(QJsonObject other) QJsonObject
(QPair<String, ? extends QJsonValue> ... args) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
assign
(QJsonObject other) clone()
Creates and returns a copy of this object.protected final QSequentialConstIterator<QJsonValue>
protected final QSequentialConstIterator<QJsonValue>
constEnd()
final boolean
final int
count()
final boolean
equals
(QJsonObject other) boolean
static QJsonObject
fromVariantHash
(Map<String, ? extends Object> map) static QJsonObject
final QJsonValue
int
hashCode()
Returns the objects's hash code computed byqHash(QJsonObject)
.final QJsonObject
Overloaded function forinsert(java.lang.String, io.qt.core.QJsonValue)
.final QJsonObject
Overloaded function forinsert(java.lang.String, io.qt.core.QJsonValue)
.final QJsonObject
Overloaded function forinsert(java.lang.String, io.qt.core.QJsonValue)
.final QJsonObject
Overloaded function forinsert(java.lang.String, io.qt.core.QJsonValue)
.final QJsonObject
insert
(String key, QJsonArray value) Overloaded function forinsert(java.lang.String, io.qt.core.QJsonValue)
.final QJsonObject
insert
(String key, QJsonObject value) Overloaded function forinsert(java.lang.String, io.qt.core.QJsonValue)
.final QJsonObject
insert
(String key, QJsonValue value) final QJsonObject
insert
(String key, QJsonValue.Type value) Overloaded function forinsert(java.lang.String, io.qt.core.QJsonValue)
.final QJsonObject
Overloaded function forinsert(java.lang.String, io.qt.core.QJsonValue)
.final boolean
isEmpty()
iterator()
Returns an iterator for this iterable object.final QStringList
keys()
final int
length()
void
readFrom
(QDataStream arg__1) Seeoperator>>(QDataStream&,
QJsonObject&) final void
final void
Overloaded function forset(java.lang.String, io.qt.core.QJsonValue)
.final void
Overloaded function forset(java.lang.String, io.qt.core.QJsonValue)
.final void
Overloaded function forset(java.lang.String, io.qt.core.QJsonValue)
.final void
Overloaded function forset(java.lang.String, io.qt.core.QJsonValue)
.final void
set
(String key, QJsonArray value) Overloaded function forset(java.lang.String, io.qt.core.QJsonValue)
.final void
set
(String key, QJsonObject value) Overloaded function forset(java.lang.String, io.qt.core.QJsonValue)
.final void
set
(String key, QJsonValue value) SeeQJsonObject::
operator[](QStringView) final void
set
(String key, QJsonValue.Type value) Overloaded function forset(java.lang.String, io.qt.core.QJsonValue)
.final void
Overloaded function forset(java.lang.String, io.qt.core.QJsonValue)
.final void
Deprecated.final void
Deprecated.Useset(java.lang.String, double)
instead.final void
Deprecated.Useset(java.lang.String, int)
instead.final void
Deprecated.Useset(java.lang.String, long)
instead.final void
setValue
(String key, QJsonArray value) Deprecated.Useset(java.lang.String, io.qt.core.QJsonArray)
instead.final void
setValue
(String key, QJsonObject value) Deprecated.Useset(java.lang.String, io.qt.core.QJsonObject)
instead.final void
setValue
(String key, QJsonValue value) Deprecated.Useset(java.lang.String, io.qt.core.QJsonValue)
instead.final void
setValue
(String key, QJsonValue.Type value) Deprecated.Useset(java.lang.String, io.qt.core.QJsonValue.Type)
instead.final void
Deprecated.Useset(java.lang.String, java.lang.String)
instead.final int
size()
final void
swap
(QJsonObject other) final QJsonValue
toString()
Seeoperator<<(QDebug,
QJsonObject) final QJsonValue
void
writeTo
(QDataStream arg__1) Seeoperator<<(QDataStream&,
QJsonObject) Methods inherited from class io.qt.QtObject
dispose, isDisposed
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
QJsonObject
public QJsonObject() -
QJsonObject
- Parameters:
other
-
-
QJsonObject
- Parameters:
args
-- Since:
- This function was introduced in Qt 5.4.
-
-
Method Details
-
constBegin
- Returns:
-
constEnd
- Returns:
-
constFind
- Parameters:
key
-- Returns:
- Since:
- This function was introduced in Qt 5.14.
-
contains
- Parameters:
key
-- Returns:
- Since:
- This function was introduced in Qt 5.14.
-
count
- Returns:
-
erase
@QtUninvokable public final QSequentialConstIterator<QJsonValue> erase(QSequentialConstIterator<QJsonValue> it) - Parameters:
it
-- Returns:
-
find
- Parameters:
key
-- Returns:
- Since:
- This function was introduced in Qt 5.14.
-
insert
- Parameters:
key
-value
-- Returns:
- the object itself
- Since:
- This function was introduced in Qt 5.14.
-
isEmpty
- Returns:
-
keys
- Returns:
-
length
- Returns:
-
writeTo
See
operator<<(QDataStream&,
QJsonObject) - Parameters:
arg__1
-
-
assign
- Parameters:
other
-
-
equals
- Parameters:
other
-- Returns:
-
readFrom
See
operator>>(QDataStream&,
QJsonObject&) - Parameters:
arg__1
-
-
get
- Parameters:
key
-- Returns:
- Since:
- This function was introduced in Qt 5.14.
-
set
See
QJsonObject::
operator[](QStringView) - Parameters:
key
-value
-
-
remove
- Parameters:
key
-- Since:
- This function was introduced in Qt 5.14.
-
size
- Returns:
-
swap
- Parameters:
other
-- Since:
- This function was introduced in Qt 5.10.
-
take
- Parameters:
key
-- Returns:
- Since:
- This function was introduced in Qt 5.14.
-
toVariantHash
- Returns:
- Since:
- This function was introduced in Qt 5.5.
-
toVariantMap
- Returns:
-
value
- Parameters:
key
-- Returns:
- Since:
- This function was introduced in Qt 5.14.
-
fromVariantHash
- Parameters:
map
-- Returns:
- Since:
- This function was introduced in Qt 5.5.
-
iterator
Returns an iterator for this iterable object.- Specified by:
iterator
in interfaceIterable<QJsonValue>
- See Also:
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QJsonObject)
. -
toString
See
operator<<(QDebug,
QJsonObject) -
clone
Creates and returns a copy of this object.
-
insert
Overloaded function for
insert(java.lang.String, io.qt.core.QJsonValue)
. -
insert
Overloaded function for
insert(java.lang.String, io.qt.core.QJsonValue)
. -
insert
Overloaded function for
insert(java.lang.String, io.qt.core.QJsonValue)
. -
insert
Overloaded function for
insert(java.lang.String, io.qt.core.QJsonValue)
. -
insert
Overloaded function for
insert(java.lang.String, io.qt.core.QJsonValue)
. -
insert
Overloaded function for
insert(java.lang.String, io.qt.core.QJsonValue)
. -
insert
Overloaded function for
insert(java.lang.String, io.qt.core.QJsonValue)
. -
insert
Overloaded function for
insert(java.lang.String, io.qt.core.QJsonValue)
. -
setValue
Deprecated.Useset(java.lang.String, io.qt.core.QJsonValue)
instead. -
setValue
Deprecated.Useset(java.lang.String, io.qt.core.QJsonValue.Type)
instead. -
setValue
Deprecated.Useset(java.lang.String, boolean)
instead. -
setValue
Deprecated.Useset(java.lang.String, double)
instead. -
setValue
Deprecated.Useset(java.lang.String, int)
instead. -
setValue
Deprecated.Useset(java.lang.String, long)
instead. -
setValue
Deprecated.Useset(java.lang.String, java.lang.String)
instead. -
setValue
Deprecated.Useset(java.lang.String, io.qt.core.QJsonArray)
instead. -
setValue
Deprecated.Useset(java.lang.String, io.qt.core.QJsonObject)
instead. -
set
Overloaded function for
set(java.lang.String, io.qt.core.QJsonValue)
. -
set
Overloaded function for
set(java.lang.String, io.qt.core.QJsonValue)
. -
set
Overloaded function for
set(java.lang.String, io.qt.core.QJsonValue)
. -
set
Overloaded function for
set(java.lang.String, io.qt.core.QJsonValue)
. -
set
Overloaded function for
set(java.lang.String, io.qt.core.QJsonValue)
. -
set
Overloaded function for
set(java.lang.String, io.qt.core.QJsonValue)
. -
set
Overloaded function for
set(java.lang.String, io.qt.core.QJsonValue)
. -
set
Overloaded function for
set(java.lang.String, io.qt.core.QJsonValue)
.
-
set(java.lang.String, boolean)
instead.