java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.core.QJsonArray
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Iterable<QJsonValue>
public class QJsonArray extends QtObject implements Iterable<QJsonValue>, Cloneable
Encapsulates a JSON array
Java wrapper for Qt class QJsonArray
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description QJsonArray()
QJsonArray(QJsonArray other)
QJsonArray(QJsonValue... args)
protected
QJsonArray(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description void
append(QJsonValue value)
QJsonValue
at(long i)
protected QIterator<QJsonValue>
begin()
QJsonArray
clone()
boolean
contains(QJsonValue element)
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.QJsonValue
first()
static QJsonArray
fromStringList(Collection<String> list)
static QJsonArray
fromVariantList(Collection<Object> list)
int
hashCode()
void
insert(long i, QJsonValue value)
boolean
isEmpty()
Iterator<QJsonValue>
iterator()
QJsonValue
last()
void
prepend(QJsonValue value)
void
readFrom(QDataStream arg__1)
void
removeAt(long i)
void
removeFirst()
void
removeLast()
void
replace(long i, QJsonValue value)
long
size()
void
swap(QJsonArray other)
QJsonValue
takeAt(long i)
QList<Object>
toList()
String
toString()
void
writeTo(QDataStream arg__1)
-
Constructor Details
-
QJsonArray
public QJsonArray() -
QJsonArray
-
QJsonArray
-
QJsonArray
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
append
-
at
-
begin
-
contains
-
count
-
end
-
first
-
insert
-
isEmpty
-
last
-
writeTo
-
readFrom
-
prepend
-
removeAt
-
removeFirst
-
removeLast
-
replace
-
size
-
swap
-
takeAt
-
toList
-
fromStringList
-
fromVariantList
-
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
-