java.lang.Object
io.qt.QtObject
io.qt.core.QJsonObject
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Iterable<QJsonValue>
Encapsulates a JSON object
Java wrapper for Qt's class QJsonObject
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionQJsonObject
(QJsonObject other) QJsonObject
(QPair<String, ? extends QJsonValue> ... args) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
assign
(QJsonObject other) clone()
protected final QSequentialConstIterator<QJsonValue>
protected final QSequentialConstIterator<QJsonValue>
constEnd()
final boolean
final int
count()
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 QJsonObject
fromVariantHash
(Map<String, ? extends Object> map) static QJsonObject
final QJsonValue
int
hashCode()
final QJsonObject
insert
(String key, QJsonValue value) final boolean
isEmpty()
iterator()
final QStringList
keys()
final int
length()
void
readFrom
(QDataStream arg__1) final void
final void
set
(String key, QJsonValue value) final void
setValue
(String key, QJsonValue value) Deprecated.final int
size()
final void
swap
(QJsonObject other) final QJsonValue
toString()
final QJsonValue
void
writeTo
(QDataStream arg__1) 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
-
QJsonObject
-
QJsonObject
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
constBegin
-
constEnd
-
constFind
-
contains
-
count
-
erase
@QtUninvokable public final QSequentialConstIterator<QJsonValue> erase(QSequentialConstIterator<QJsonValue> it) -
find
-
insert
-
isEmpty
-
keys
-
length
-
writeTo
-
assign
-
readFrom
-
get
-
setValue
Deprecated.Useset(java.lang.String, io.qt.core.QJsonValue)
instead. -
set
-
remove
-
size
-
swap
-
take
-
toVariantHash
-
toVariantMap
-
value
-
fromVariantHash
-
iterator
- Specified by:
iterator
in interfaceIterable<QJsonValue>
-
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
-
toString
-
clone
-
set(java.lang.String, io.qt.core.QJsonValue)
instead.