java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.core.QJsonObject
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Iterable<QJsonValue>
public class QJsonObject extends QtObject implements Iterable<QJsonValue>, Cloneable
Encapsulates a JSON object
Java wrapper for Qt class QJsonObject
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description QJsonObject()
QJsonObject(QJsonObject other)
QJsonObject(QPair<String,QJsonValue>... args)
protected
QJsonObject(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description protected QIterator<QJsonValue>
begin()
QJsonObject
clone()
boolean
contains(String key)
long
count()
protected QIterator<QJsonValue>
end()
boolean
equals(Object other)
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.QIterator<QJsonValue>
find(String key)
static QJsonObject
fromVariantHash(Map<String,Object> map)
static QJsonObject
fromVariantMap(NavigableMap<String,Object> map)
int
hashCode()
boolean
isEmpty()
Iterator<QJsonValue>
iterator()
QStringList
keys()
long
length()
void
readFrom(QDataStream arg__1)
void
remove(String key)
long
size()
void
swap(QJsonObject other)
QJsonValue
take(String key)
String
toString()
QHash<String,Object>
toVariantHash()
QMap<String,Object>
toVariantMap()
QJsonValue
value(String key)
void
writeTo(QDataStream arg__1)
-
Constructor Details
-
QJsonObject
public QJsonObject() -
QJsonObject
-
QJsonObject
-
QJsonObject
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
begin
-
contains
-
count
-
end
-
find
-
isEmpty
-
keys
-
length
-
writeTo
-
readFrom
-
remove
-
size
-
swap
-
take
-
toVariantHash
-
toVariantMap
-
value
-
fromVariantHash
-
fromVariantMap
-
iterator
- Specified by:
iterator
in interfaceIterable<QJsonValue>
-
equals
Description copied from class:QtObject
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
toString
-
clone
-