java.lang.Object
io.qt.QtObject
io.qt.core.QCborMap
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<QCborMap>
,Iterable<QPair<QCborValue,
QCborValue>>
public class QCborMap
extends QtObject
implements Comparable<QCborMap>, Iterable<QPair<QCborValue,QCborValue>>, Cloneable
Used to hold an associative container representable in CBOR
Java wrapper for Qt class QCborMap
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ConstructorDescriptionQCborMap()
QCborMap
(QPair<? extends QCborValue, ? extends QCborValue> ... args) SeeQCborMap::
QCborMap(std::initializer_list<QCborMap::value_type>) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
final void
clear()
clone()
Creates and returns a copy of this object.final int
int
protected final QSequentialConstIterator<QPair<QCborValue,
QCborValue>> protected final QSequentialConstIterator<QPair<QCborValue,
QCborValue>> constEnd()
constFind
(long key) constFind
(QCborValue key) final boolean
contains
(long key) final boolean
contains
(QCborValue key) final boolean
final boolean
empty()
boolean
static QCborMap
static QCborMap
fromVariantHash
(Map<String, ? extends Object> hash) static QCborMap
fromVariantMap
(Map<String, ? extends Object> map) final QCborValue
get
(long key) final QCborValue
get
(QCborValue key) final QCborValue
int
hashCode()
Returns the objects's hash code computed byqHash(QCborMap)
.final QCborMap
insert
(long key, QCborValue value_) final QCborMap
insert
(QCborValue key, QCborValue value_) final QCborMap
insert
(QPair<? extends QCborValue, ? extends QCborValue> v) final QCborMap
insert
(String key, QCborValue value_) final boolean
isEmpty()
iterator()
Returns an iterator for this iterable object.final QVector<QCborValue>
keys()
void
readFrom
(QDataStream arg__1) Seeoperator>>(QDataStream&,
QCborMap&) final void
remove
(long key) final void
remove
(QCborValue key) final void
final void
set
(long key, QCborValue value) SeeQCborMap::
operator[](qint64) final void
Deprecated.final void
set
(QCborValue key, QCborValue value) SeeQCborMap::
operator[](QCborValue) final void
set
(String key, QCborValue value) SeeQCborMap::
operator[](QString) final void
setValue
(long key, QCborValue value) Delegate forset(long, io.qt.core.QCborValue)
.final void
setValue
(QCborValue key, QCborValue value) Delegate forset(io.qt.core.QCborValue, io.qt.core.QCborValue)
.final void
setValue
(String key, QCborValue value) Delegate forset(java.lang.String, io.qt.core.QCborValue)
.final long
size()
final void
final QCborValue
take
(long key) final QCborValue
take
(QCborValue key) final QCborValue
final QCborValue
final QJsonObject
toString()
Seeoperator<<(QDebug,
QCborMap) final QCborValue
value
(long key) final QCborValue
value
(QCborValue key) final QCborValue
void
writeTo
(QDataStream arg__1) Seeoperator<<(QDataStream&,
QCborMap) 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
-
QCborMap
public QCborMap() -
QCborMap
-
QCborMap
See
QCborMap::
QCborMap(std::initializer_list<QCborMap::value_type>)
-
-
Method Details
-
clear
-
compare
-
constBegin
-
constEnd
-
constFind
@QtUninvokable public final QSequentialConstIterator<QPair<QCborValue,QCborValue>> constFind(QCborValue key) -
constFind
@QtUninvokable public final QSequentialConstIterator<QPair<QCborValue,QCborValue>> constFind(String key) -
constFind
@QtUninvokable public final QSequentialConstIterator<QPair<QCborValue,QCborValue>> constFind(long key) -
contains
-
contains
-
contains
-
empty
-
insert
-
insert
-
insert
-
insert
-
isEmpty
-
keys
-
writeTo
See
operator<<(QDataStream&,
QCborMap) -
set
Deprecated.Useassign(io.qt.core.QCborMap)
instead. -
assign
-
readFrom
See
operator>>(QDataStream&,
QCborMap&) -
get
-
setValue
Delegate for
set(io.qt.core.QCborValue, io.qt.core.QCborValue)
. -
set
See
QCborMap::
operator[](QCborValue) -
get
-
setValue
Delegate for
set(java.lang.String, io.qt.core.QCborValue)
. -
set
See
QCborMap::
operator[](QString) -
get
-
setValue
Delegate for
set(long, io.qt.core.QCborValue)
. -
set
See
QCborMap::
operator[](qint64) -
remove
-
remove
-
remove
-
size
-
swap
-
take
-
take
-
take
-
toCborValue
-
toJsonObject
-
toVariantHash
-
toVariantMap
-
value
-
value
-
value
-
fromJsonObject
-
fromVariantHash
-
fromVariantMap
-
iterator
Returns an iterator for this iterable object.- Specified by:
iterator
in interfaceIterable<QPair<QCborValue,
QCborValue>> - See Also:
-
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QCborMap>
-
hashCode
Returns the objects's hash code computed byqHash(QCborMap)
. -
toString
See
operator<<(QDebug,
QCborMap) -
clone
Creates and returns a copy of this object.
-
assign(io.qt.core.QCborMap)
instead.