io.qt.core.QCborArray Maven / Gradle / Ivy
package io.qt.core;
/**
* Used to hold an array of CBOR elements
* Java wrapper for Qt class QCborArray
*/
public class QCborArray extends io.qt.QtObject
implements java.lang.Comparable,
java.lang.Iterable,
java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
*
*/
public QCborArray(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QCborArray instance);
/**
* See QCborArray::QCborArray(QCborArray)
*/
public QCborArray(io.qt.core.QCborArray other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QCborArray instance, io.qt.core.QCborArray other);
/**
* See QCborArray::QCborArray(std::initializer_list<QCborValue>)
*/
public QCborArray(io.qt.core.QCborValue ... args){
super((QPrivateConstructor)null);
initialize_native(this, args);
}
private native static void initialize_native(QCborArray instance, io.qt.core.QCborValue ... args);
/**
* See QCborArray::append(QCborValue)
*/
@io.qt.QtUninvokable
public final void append(io.qt.core.QCborValue value){
append_native_cref_QCborValue(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(value));
}
@io.qt.QtUninvokable
private native void append_native_cref_QCborValue(long __this__nativeId, long value);
/**
* See QCborArray::at(qsizetype)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QCborValue at(long i){
return at_native_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), i);
}
@io.qt.QtUninvokable
private native io.qt.core.QCborValue at_native_qsizetype_constfct(long __this__nativeId, long i);
/**
*
*/
@io.qt.QtUninvokable
protected final io.qt.core.QIterator begin(){
return begin_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QIterator begin_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final void clear(){
clear_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void clear_native(long __this__nativeId);
/**
* See QCborArray::compare(QCborArray)const
*/
@io.qt.QtUninvokable
public final int compare(io.qt.core.QCborArray other){
return compare_native_cref_QCborArray_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@io.qt.QtUninvokable
private native int compare_native_cref_QCborArray_constfct(long __this__nativeId, long other);
/**
* See QCborArray::contains(QCborValue)const
*/
@io.qt.QtUninvokable
public final boolean contains(io.qt.core.QCborValue value){
return contains_native_cref_QCborValue_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(value));
}
@io.qt.QtUninvokable
private native boolean contains_native_cref_QCborValue_constfct(long __this__nativeId, long value);
/**
*
*/
@io.qt.QtUninvokable
protected final io.qt.core.QIterator end(){
return end_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QIterator end_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QCborValue first(){
return first_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QCborValue first_native(long __this__nativeId);
/**
* See QCborArray::insert(qsizetype,QCborValue)
*/
@io.qt.QtUninvokable
public final void insert(long i, io.qt.core.QCborValue value){
insert_native_qsizetype_cref_QCborValue(QtJambi_LibraryUtilities.internal.nativeId(this), i, QtJambi_LibraryUtilities.internal.checkedNativeId(value));
}
@io.qt.QtUninvokable
private native void insert_native_qsizetype_cref_QCborValue(long __this__nativeId, long i, long value);
/**
* See QCborArray::isEmpty()const
*/
@io.qt.QtUninvokable
public final boolean isEmpty(){
return isEmpty_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isEmpty_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QCborValue last(){
return last_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QCborValue last_native(long __this__nativeId);
/**
* See QCborArray::operator<(QCborArray)const
*/
@io.qt.QtUninvokable
private final boolean operator_less(io.qt.core.QCborArray other){
return operator_less_native_cref_QCborArray_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@io.qt.QtUninvokable
private native boolean operator_less_native_cref_QCborArray_constfct(long __this__nativeId, long other);
/**
* See QCborArray::operator<<(QDataStream&,QCborArray)
*/
@io.qt.QtUninvokable
public void writeTo(io.qt.core.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));
}
@io.qt.QtUninvokable
private native void writeTo_native_ref_QDataStream(long __this__nativeId, long arg__1);
/**
* See QCborArray::operator=(QCborArray)
*/
@io.qt.QtUninvokable
public final void set(io.qt.core.QCborArray other){
set_native_cref_QCborArray(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@io.qt.QtUninvokable
private native void set_native_cref_QCborArray(long __this__nativeId, long other);
/**
* See QCborArray::operator==(QCborArray)const
*/
@io.qt.QtUninvokable
private final boolean operator_equal(io.qt.core.QCborArray other){
return operator_equal_native_cref_QCborArray_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@io.qt.QtUninvokable
private native boolean operator_equal_native_cref_QCborArray_constfct(long __this__nativeId, long other);
@io.qt.QtUninvokable
public void readFrom(io.qt.core.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));
}
@io.qt.QtUninvokable
private native void readFrom_native_ref_QDataStream(long __this__nativeId, long arg__1);
/**
* See QCborArray::operator[](qsizetype)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QCborValue value(long i){
return value_native_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), i);
}
@io.qt.QtUninvokable
private native io.qt.core.QCborValue value_native_qsizetype_constfct(long __this__nativeId, long i);
/**
* See QCborArray::prepend(QCborValue)
*/
@io.qt.QtUninvokable
public final void prepend(io.qt.core.QCborValue value){
prepend_native_cref_QCborValue(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(value));
}
@io.qt.QtUninvokable
private native void prepend_native_cref_QCborValue(long __this__nativeId, long value);
/**
* See QCborArray::removeAt(qsizetype)
*/
@io.qt.QtUninvokable
public final void removeAt(long i){
removeAt_native_qsizetype(QtJambi_LibraryUtilities.internal.nativeId(this), i);
}
@io.qt.QtUninvokable
private native void removeAt_native_qsizetype(long __this__nativeId, long i);
/**
*
*/
@io.qt.QtUninvokable
public final void removeFirst(){
removeFirst_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void removeFirst_native(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final void removeLast(){
removeLast_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void removeLast_native(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final long size(){
return size_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native long size_native_constfct(long __this__nativeId);
/**
* See QCborArray::swap(QCborArray&)
*/
@io.qt.QtUninvokable
public final void swap(io.qt.core.QCborArray other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
swap_native_ref_QCborArray(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@io.qt.QtUninvokable
private native void swap_native_ref_QCborArray(long __this__nativeId, long other);
/**
* See QCborArray::takeAt(qsizetype)
*/
@io.qt.QtUninvokable
public final io.qt.core.QCborValue takeAt(long i){
return takeAt_native_qsizetype(QtJambi_LibraryUtilities.internal.nativeId(this), i);
}
@io.qt.QtUninvokable
private native io.qt.core.QCborValue takeAt_native_qsizetype(long __this__nativeId, long i);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QCborValue takeFirst(){
return takeFirst_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QCborValue takeFirst_native(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QCborValue takeLast(){
return takeLast_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QCborValue takeLast_native(long __this__nativeId);
/**
* See QCborArray::toCborValue()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QCborValue toCborValue(){
return toCborValue_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QCborValue toCborValue_native_constfct(long __this__nativeId);
/**
* See QCborArray::toJsonArray()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QJsonArray toJsonArray(){
return toJsonArray_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QJsonArray toJsonArray_native_constfct(long __this__nativeId);
/**
* See QCborArray::toVariantList()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QList toVariantList(){
return toVariantList_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QList toVariantList_native_constfct(long __this__nativeId);
/**
* See QCborArray::fromJsonArray(QJsonArray)
*/
public static io.qt.core.QCborArray fromJsonArray(io.qt.core.QJsonArray array){
return fromJsonArray_native_cref_QJsonArray(QtJambi_LibraryUtilities.internal.checkedNativeId(array));
}
private native static io.qt.core.QCborArray fromJsonArray_native_cref_QJsonArray(long array);
/**
* See QCborArray::fromStringList(QStringList)
*/
public native static io.qt.core.QCborArray fromStringList(java.util.Collection list);
/**
* See QCborArray::fromVariantList(QVariantList)
*/
public native static io.qt.core.QCborArray fromVariantList(java.util.Collection list);
@Override
public java.util.Iterator iterator() {
return begin().iterator();
}
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QCborArray(QPrivateConstructor p) { super(p); }
@Override
@io.qt.QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.core.QCborArray) {
return operator_equal((io.qt.core.QCborArray) other);
}
return false;
}
@io.qt.QtUninvokable
public int compareTo(io.qt.core.QCborArray other) {
if (equals(other)) return 0;
else if (operator_less(other)) return -1;
else return 1;
}
@io.qt.QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native static int hashCode_native(long __this_nativeId);
@io.qt.QtUninvokable
public native final void setValue(long i, io.qt.core.QCborValue value);
@Override
@io.qt.QtUninvokable
public String toString() {
return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private static native String toString_native(long __this_nativeId);
@Override
public QCborArray clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native QCborArray clone_native(long __this_nativeId);
}