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

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

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

import io.qt.*;


/**
 * 

Holds a sequence of bytes that can be quickly matched in a byte array

*

Java wrapper for Qt class QByteArrayMatcher

*/ public class QByteArrayMatcher extends QtObject implements java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } @QtPropertyMember(enabled=false) private Object __rcData = null; /** *

See QByteArrayMatcher::QByteArrayMatcher()

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

See QByteArrayMatcher::QByteArrayMatcher(QByteArray)

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

See QByteArrayMatcher::QByteArrayMatcher(QByteArrayMatcher)

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

See QByteArrayMatcher::QByteArrayMatcher(QByteArrayView)

*/ public QByteArrayMatcher(io.qt.core.@NonNull QByteArrayView pattern){ super((QPrivateConstructor)null); initialize_native(this, pattern); __rcData = pattern; } private native static void initialize_native(QByteArrayMatcher instance, io.qt.core.QByteArrayView pattern); /** *

See QByteArrayMatcher::QByteArrayMatcher(const char*,qsizetype)

*/ public QByteArrayMatcher(java.nio.@StrictNonNull ByteBuffer pattern){ super((QPrivateConstructor)null); java.util.Objects.requireNonNull(pattern, "Argument 'pattern': null not expected."); initialize_native(this, pattern); __rcData = pattern; } private native static void initialize_native(QByteArrayMatcher instance, java.nio.ByteBuffer pattern); /** *

See QByteArrayMatcher::indexIn(QByteArrayView,qsizetype)const

*/ @QtUninvokable public final long indexIn(io.qt.core.@NonNull QByteArrayView data, long from){ return indexIn_native_QByteArrayView_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(data), from); } @QtUninvokable private native long indexIn_native_QByteArrayView_qsizetype_constfct(long __this__nativeId, long data, long from); /** *

See QByteArrayMatcher::indexIn<void>(QByteArray,qsizetype)const

*/ @QtUninvokable public final long indexIn(io.qt.core.@NonNull QByteArray ba, long from){ return indexIn_native_cref_QByteArray_qsizetype_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(ba), from); } @QtUninvokable private native long indexIn_native_cref_QByteArray_qsizetype_constfct(long __this__nativeId, long ba, long from); /** *

See QByteArrayMatcher::operator=(QByteArrayMatcher)

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

See operator==(QByteArrayMatcher,QByteArrayMatcher)

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

See QByteArrayMatcher::pattern()const

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

See QByteArrayMatcher::setPattern(QByteArray)

*/ @QtUninvokable public final void setPattern(io.qt.core.@NonNull QByteArray pattern){ setPattern_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pattern)); } @QtUninvokable private native void setPattern_native_cref_QByteArray(long __this__nativeId, long pattern); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QByteArrayMatcher(QPrivateConstructor p) { super(p); } /** *

See operator==(QByteArrayMatcher,QByteArrayMatcher)

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

Creates and returns a copy of this object.

See QByteArrayMatcher::QByteArrayMatcher(QByteArrayMatcher)

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

Overloaded constructor for {@link #QByteArrayMatcher(java.nio.ByteBuffer)}.

*/ public QByteArrayMatcher(byte @StrictNonNull[] pattern, int offsetOfPattern, int length) { this(pattern==null ? null : java.nio.ByteBuffer.wrap(pattern, offsetOfPattern, length)); } /** *

Overloaded constructor for {@link #QByteArrayMatcher(java.nio.ByteBuffer)}.

*/ public QByteArrayMatcher(byte @StrictNonNull[] pattern) { this(pattern==null ? null : java.nio.ByteBuffer.wrap(pattern)); } /** *

Overloaded function for {@link #indexIn(io.qt.core.QByteArrayView, long)} * with from = 0.

*/ @QtUninvokable public final long indexIn(io.qt.core.@NonNull QByteArrayView data) { return indexIn(data, (long)0); } /** *

Overloaded function for {@link #indexIn(java.nio.ByteBuffer, long)} * with from = 0.

*/ @QtUninvokable public final long indexIn(java.nio.@NonNull ByteBuffer data) { return indexIn(data, (long)0); } /** *

Overloaded function for {@link #indexIn(io.qt.core.QByteArrayView, long)}.

*/ @QtUninvokable public final long indexIn(java.nio.@NonNull ByteBuffer data, long from) { return indexIn(new io.qt.core.QByteArrayView(data), from); } /** *

Overloaded function for {@link #indexIn(byte[], long)} * with from = 0.

*/ @QtUninvokable public final long indexIn(byte @NonNull[] data) { return indexIn(data, (long)0); } /** *

Overloaded function for {@link #indexIn(io.qt.core.QByteArrayView, long)}.

*/ @QtUninvokable public final long indexIn(byte @NonNull[] data, long from) { return indexIn(new io.qt.core.QByteArrayView(data), from); } /** *

Overloaded function for {@link #indexIn(io.qt.core.QByteArray, long)} * with from = 0.

*/ @QtUninvokable public final long indexIn(io.qt.core.@NonNull QByteArray ba) { return indexIn(ba, (long)0); } /** *

Overloaded function for {@link #setPattern(io.qt.core.QByteArray)}.

*/ @QtUninvokable public final void setPattern(byte @NonNull[] pattern) { setPattern(new io.qt.core.QByteArray(pattern)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy