All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.core.QJsonObject Maven / Gradle / Ivy

There is a newer version: 6.8.0
Show newest version
package io.qt.core;

import io.qt.*;


/**
 * 

Encapsulates a JSON object

*

Java wrapper for Qt class QJsonObject

*/ public class QJsonObject extends QtObject implements java.lang.Iterable, java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** *

See QJsonObject::QJsonObject()

*/ public QJsonObject(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QJsonObject instance); /** *

See QJsonObject::QJsonObject(QJsonObject)

*/ public QJsonObject(io.qt.core.@NonNull QJsonObject other){ super((QPrivateConstructor)null); initialize_native(this, other); } private native static void initialize_native(QJsonObject instance, io.qt.core.QJsonObject other); /** *

See QJsonObject::QJsonObject(std::initializer_list<std::pair<QString,QJsonValue>>)

*/ @SafeVarargs public QJsonObject(io.qt.core.@NonNull QPair@NonNull ... args){ super((QPrivateConstructor)null); initialize_native(this, args); } private native static void initialize_native(QJsonObject instance, io.qt.core.QPair[] args); /** *

See QJsonObject::constBegin()const

*/ @QtUninvokable protected final io.qt.core.@NonNull QSequentialConstIterator constBegin(){ return constBegin_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QSequentialConstIterator constBegin_native_constfct(long __this__nativeId); /** *

See QJsonObject::constEnd()const

*/ @QtUninvokable protected final io.qt.core.@NonNull QSequentialConstIterator constEnd(){ return constEnd_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QSequentialConstIterator constEnd_native_constfct(long __this__nativeId); /** *

See QJsonObject::constFind(QStringView)const

*/ @QtUninvokable public final io.qt.core.@NonNull QSequentialConstIterator constFind(java.lang.@NonNull String key){ return constFind_native_QStringView_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), key); } @QtUninvokable private native io.qt.core.QSequentialConstIterator constFind_native_QStringView_constfct(long __this__nativeId, java.lang.String key); /** *

See QJsonObject::contains(QStringView)const

*/ @QtUninvokable public final boolean contains(java.lang.@NonNull String key){ return contains_native_QStringView_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), key); } @QtUninvokable private native boolean contains_native_QStringView_constfct(long __this__nativeId, java.lang.String key); /** *

See QJsonObject::count()const

*/ @QtUninvokable public final long count(){ return count_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native long count_native_constfct(long __this__nativeId); /** *

See QJsonObject::erase(QJsonObject::iterator)

*/ @QtUninvokable public final io.qt.core.@NonNull QSequentialConstIterator erase(io.qt.core.@NonNull QSequentialConstIterator it){ return erase_native_QJsonObject_iterator(QtJambi_LibraryUtilities.internal.nativeId(this), it); } @QtUninvokable private native io.qt.core.QSequentialConstIterator erase_native_QJsonObject_iterator(long __this__nativeId, io.qt.core.QSequentialConstIterator it); /** *

See QJsonObject::find(QStringView)

*/ @QtUninvokable public final io.qt.core.@NonNull QSequentialConstIterator find(java.lang.@NonNull String key){ return find_native_QStringView(QtJambi_LibraryUtilities.internal.nativeId(this), key); } @QtUninvokable private native io.qt.core.QSequentialConstIterator find_native_QStringView(long __this__nativeId, java.lang.String key); /** *

See QJsonObject::insert(QStringView,QJsonValue)

*/ @QtUninvokable public final @NonNull QJsonObject insert(java.lang.@NonNull String key, io.qt.core.@NonNull QJsonValue value){ return insert_native_QStringView_cref_QJsonValue(QtJambi_LibraryUtilities.internal.nativeId(this), key, QtJambi_LibraryUtilities.internal.checkedNativeId(value)); } @QtUninvokable private native QJsonObject insert_native_QStringView_cref_QJsonValue(long __this__nativeId, java.lang.String key, long value); /** *

See QJsonObject::isEmpty()const

*/ @QtUninvokable public final boolean isEmpty(){ return isEmpty_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isEmpty_native_constfct(long __this__nativeId); /** *

See QJsonObject::keys()const

*/ @QtUninvokable public final io.qt.core.@NonNull QStringList keys(){ return keys_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QStringList keys_native_constfct(long __this__nativeId); /** *

See QJsonObject::length()const

*/ @QtUninvokable public final long length(){ return length_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native long length_native_constfct(long __this__nativeId); /** *

See operator<<(QDataStream&,QJsonObject)

*/ @QtUninvokable public void writeTo(io.qt.core.@StrictNonNull QDataStream arg__1){ java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected."); writeTo_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void writeTo_native_ref_QDataStream(long __this__nativeId, long arg__1); /** *

See QJsonObject::operator=(QJsonObject)

*/ @QtUninvokable public final void assign(io.qt.core.@NonNull QJsonObject other){ assign_native_cref_QJsonObject(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native void assign_native_cref_QJsonObject(long __this__nativeId, long other); /** *

See QJsonObject::operator==(QJsonObject)const

*/ @QtUninvokable public final boolean equals(io.qt.core.@NonNull QJsonObject other){ return equals_native_cref_QJsonObject_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native boolean equals_native_cref_QJsonObject_constfct(long __this__nativeId, long other); /** *

See operator>>(QDataStream&,QJsonObject&)

*/ @QtUninvokable public void readFrom(io.qt.core.@StrictNonNull QDataStream arg__1){ java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected."); readFrom_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void readFrom_native_ref_QDataStream(long __this__nativeId, long arg__1); /** *

See QJsonObject::operator[](QStringView)const

*/ @QtUninvokable public final io.qt.core.@NonNull QJsonValue get(java.lang.@NonNull String key){ return get_native_QStringView_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), key); } @QtUninvokable private native io.qt.core.QJsonValue get_native_QStringView_constfct(long __this__nativeId, java.lang.String key); /** *

See QJsonObject::operator[](QStringView)

*/ @QtUninvokable public final void set(java.lang.@NonNull String key, io.qt.core.@NonNull QJsonValue value){ set_native_QStringView_const_QJsonValue(QtJambi_LibraryUtilities.internal.nativeId(this), key, QtJambi_LibraryUtilities.internal.checkedNativeId(value)); } @QtUninvokable private native void set_native_QStringView_const_QJsonValue(long __this__nativeId, java.lang.String key, long value); /** *

See QJsonObject::remove(QStringView)

*/ @QtUninvokable public final void remove(java.lang.@NonNull String key){ remove_native_QStringView(QtJambi_LibraryUtilities.internal.nativeId(this), key); } @QtUninvokable private native void remove_native_QStringView(long __this__nativeId, java.lang.String key); /** *

See QJsonObject::size()const

*/ @QtUninvokable public final long size(){ return size_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native long size_native_constfct(long __this__nativeId); /** *

See QJsonObject::swap(QJsonObject&)

*/ @QtUninvokable public final void swap(io.qt.core.@StrictNonNull QJsonObject other){ java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); swap_native_ref_QJsonObject(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native void swap_native_ref_QJsonObject(long __this__nativeId, long other); /** *

See QJsonObject::take(QStringView)

*/ @QtUninvokable public final io.qt.core.@NonNull QJsonValue take(java.lang.@NonNull String key){ return take_native_QStringView(QtJambi_LibraryUtilities.internal.nativeId(this), key); } @QtUninvokable private native io.qt.core.QJsonValue take_native_QStringView(long __this__nativeId, java.lang.String key); /** *

See QJsonObject::toVariantHash()const

*/ @QtUninvokable public final io.qt.core.@NonNull QHash toVariantHash(){ return toVariantHash_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QHash toVariantHash_native_constfct(long __this__nativeId); /** *

See QJsonObject::toVariantMap()const

*/ @QtUninvokable public final io.qt.core.@NonNull QMap toVariantMap(){ return toVariantMap_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QMap toVariantMap_native_constfct(long __this__nativeId); /** *

See QJsonObject::value(QStringView)const

*/ @QtUninvokable public final io.qt.core.@NonNull QJsonValue value(java.lang.@NonNull String key){ return value_native_QStringView_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), key); } @QtUninvokable private native io.qt.core.QJsonValue value_native_QStringView_constfct(long __this__nativeId, java.lang.String key); /** *

See QJsonObject::fromVariantHash(QVariantHash)

*/ public native static io.qt.core.@NonNull QJsonObject fromVariantHash(java.util.@NonNull Map map); /** *

See QJsonObject::fromVariantMap(QVariantMap)

*/ public native static io.qt.core.@NonNull QJsonObject fromVariantMap(java.util.@Nullable NavigableMap map); /** * Returns an iterator for this iterable object. * @see #constBegin() * @see #constEnd() */ @Override public java.util.@NonNull Iterator iterator() { return constBegin().iterator(); } /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QJsonObject(QPrivateConstructor p) { super(p); } /** *

See QJsonObject::operator==(QJsonObject)const

*/ @Override @QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.core.QJsonObject) { return equals((io.qt.core.QJsonObject) other); } return false; } /** * Returns the objects's hash code computed by qHash(QJsonObject). */ @QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native static int hashCode_native(long __this_nativeId); /** *

See operator<<(QDebug,QJsonObject)

*/ @QtUninvokable @Override public @NonNull String toString() { return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private static native String toString_native(long __this_nativeId); /** *

Creates and returns a copy of this object.

See QJsonObject::QJsonObject(QJsonObject)

*/ @QtUninvokable @Override public QJsonObject clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private static native QJsonObject clone_native(long __this_nativeId); /** *

Overloaded function for {@link #insert(java.lang.String, io.qt.core.QJsonValue)}.

*/ @QtUninvokable public final @NonNull QJsonObject insert(java.lang.@NonNull String key, io.qt.core.QJsonValue.@NonNull Type value) { return insert(key, new io.qt.core.QJsonValue(value)); } /** *

Overloaded function for {@link #insert(java.lang.String, io.qt.core.QJsonValue)}.

*/ @QtUninvokable public final @NonNull QJsonObject insert(java.lang.@NonNull String key, boolean value) { return insert(key, new io.qt.core.QJsonValue(value)); } /** *

Overloaded function for {@link #insert(java.lang.String, io.qt.core.QJsonValue)}.

*/ @QtUninvokable public final @NonNull QJsonObject insert(java.lang.@NonNull String key, double value) { return insert(key, new io.qt.core.QJsonValue(value)); } /** *

Overloaded function for {@link #insert(java.lang.String, io.qt.core.QJsonValue)}.

*/ @QtUninvokable public final @NonNull QJsonObject insert(java.lang.@NonNull String key, int value) { return insert(key, new io.qt.core.QJsonValue(value)); } /** *

Overloaded function for {@link #insert(java.lang.String, io.qt.core.QJsonValue)}.

*/ @QtUninvokable public final @NonNull QJsonObject insert(java.lang.@NonNull String key, long value) { return insert(key, new io.qt.core.QJsonValue(value)); } /** *

Overloaded function for {@link #insert(java.lang.String, io.qt.core.QJsonValue)}.

*/ @QtUninvokable public final @NonNull QJsonObject insert(java.lang.@NonNull String key, java.lang.@NonNull String value) { return insert(key, new io.qt.core.QJsonValue(value)); } /** *

Overloaded function for {@link #insert(java.lang.String, io.qt.core.QJsonValue)}.

*/ @QtUninvokable public final @NonNull QJsonObject insert(java.lang.@NonNull String key, io.qt.core.@NonNull QJsonArray value) { return insert(key, new io.qt.core.QJsonValue(value)); } /** *

Overloaded function for {@link #insert(java.lang.String, io.qt.core.QJsonValue)}.

*/ @QtUninvokable public final @NonNull QJsonObject insert(java.lang.@NonNull String key, io.qt.core.@NonNull QJsonObject value) { return insert(key, new io.qt.core.QJsonValue(value)); } /** * @deprecated Use {@link #set(java.lang.String, io.qt.core.QJsonValue)} instead. */ @Deprecated @QtUninvokable public final void setValue(java.lang.@NonNull String key, io.qt.core.@NonNull QJsonValue value) { set(key, value); } /** * @deprecated Use {@link #set(java.lang.String, io.qt.core.QJsonValue.Type)} instead. */ @Deprecated @QtUninvokable public final void setValue(java.lang.@NonNull String key, io.qt.core.QJsonValue.@NonNull Type value) { set(key, new io.qt.core.QJsonValue(value)); } /** * @deprecated Use {@link #set(java.lang.String, boolean)} instead. */ @Deprecated @QtUninvokable public final void setValue(java.lang.@NonNull String key, boolean value) { set(key, new io.qt.core.QJsonValue(value)); } /** * @deprecated Use {@link #set(java.lang.String, double)} instead. */ @Deprecated @QtUninvokable public final void setValue(java.lang.@NonNull String key, double value) { set(key, new io.qt.core.QJsonValue(value)); } /** * @deprecated Use {@link #set(java.lang.String, int)} instead. */ @Deprecated @QtUninvokable public final void setValue(java.lang.@NonNull String key, int value) { set(key, new io.qt.core.QJsonValue(value)); } /** * @deprecated Use {@link #set(java.lang.String, long)} instead. */ @Deprecated @QtUninvokable public final void setValue(java.lang.@NonNull String key, long value) { set(key, new io.qt.core.QJsonValue(value)); } /** * @deprecated Use {@link #set(java.lang.String, java.lang.String)} instead. */ @Deprecated @QtUninvokable public final void setValue(java.lang.@NonNull String key, java.lang.@NonNull String value) { set(key, new io.qt.core.QJsonValue(value)); } /** * @deprecated Use {@link #set(java.lang.String, io.qt.core.QJsonArray)} instead. */ @Deprecated @QtUninvokable public final void setValue(java.lang.@NonNull String key, io.qt.core.@NonNull QJsonArray value) { set(key, new io.qt.core.QJsonValue(value)); } /** * @deprecated Use {@link #set(java.lang.String, io.qt.core.QJsonObject)} instead. */ @Deprecated @QtUninvokable public final void setValue(java.lang.@NonNull String key, io.qt.core.@NonNull QJsonObject value) { set(key, new io.qt.core.QJsonValue(value)); } /** *

Overloaded function for {@link #set(java.lang.String, io.qt.core.QJsonValue)}.

*/ @QtUninvokable public final void set(java.lang.@NonNull String key, io.qt.core.QJsonValue.@NonNull Type value) { set(key, new io.qt.core.QJsonValue(value)); } /** *

Overloaded function for {@link #set(java.lang.String, io.qt.core.QJsonValue)}.

*/ @QtUninvokable public final void set(java.lang.@NonNull String key, boolean value) { set(key, new io.qt.core.QJsonValue(value)); } /** *

Overloaded function for {@link #set(java.lang.String, io.qt.core.QJsonValue)}.

*/ @QtUninvokable public final void set(java.lang.@NonNull String key, double value) { set(key, new io.qt.core.QJsonValue(value)); } /** *

Overloaded function for {@link #set(java.lang.String, io.qt.core.QJsonValue)}.

*/ @QtUninvokable public final void set(java.lang.@NonNull String key, int value) { set(key, new io.qt.core.QJsonValue(value)); } /** *

Overloaded function for {@link #set(java.lang.String, io.qt.core.QJsonValue)}.

*/ @QtUninvokable public final void set(java.lang.@NonNull String key, long value) { set(key, new io.qt.core.QJsonValue(value)); } /** *

Overloaded function for {@link #set(java.lang.String, io.qt.core.QJsonValue)}.

*/ @QtUninvokable public final void set(java.lang.@NonNull String key, java.lang.@NonNull String value) { set(key, new io.qt.core.QJsonValue(value)); } /** *

Overloaded function for {@link #set(java.lang.String, io.qt.core.QJsonValue)}.

*/ @QtUninvokable public final void set(java.lang.@NonNull String key, io.qt.core.@NonNull QJsonArray value) { set(key, new io.qt.core.QJsonValue(value)); } /** *

Overloaded function for {@link #set(java.lang.String, io.qt.core.QJsonValue)}.

*/ @QtUninvokable public final void set(java.lang.@NonNull String key, io.qt.core.@NonNull QJsonObject value) { set(key, new io.qt.core.QJsonValue(value)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy