io.qt.core.QUuid Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.core;
import io.qt.*;
/**
* Stores a Universally Unique Identifier (UUID)
* Java wrapper for Qt class QUuid
*/
public class QUuid extends QtObject
implements java.lang.Comparable,
java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum QUuid::StringFormat
*/
public enum StringFormat implements QtEnumerator {
/**
* Representing QUuid:: WithBraces
*/
WithBraces(0),
/**
* Representing QUuid:: WithoutBraces
*/
WithoutBraces(1),
/**
* Representing QUuid:: Id128
*/
Id128(3);
static {
QtJambi_LibraryUtilities.initialize();
}
private StringFormat(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull StringFormat resolve(int value) {
switch (value) {
case 0: return WithBraces;
case 1: return WithoutBraces;
case 3: return Id128;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QUuid::Variant
*/
public enum Variant implements QtEnumerator {
/**
* Representing QUuid:: VarUnknown
*/
VarUnknown(-1),
/**
* Representing QUuid:: NCS
*/
NCS(0),
/**
* Representing QUuid:: DCE
*/
DCE(2),
/**
* Representing QUuid:: Microsoft
*/
Microsoft(6),
/**
* Representing QUuid:: Reserved
*/
Reserved(7);
static {
QtJambi_LibraryUtilities.initialize();
}
private Variant(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull Variant resolve(int value) {
switch (value) {
case -1: return VarUnknown;
case 0: return NCS;
case 2: return DCE;
case 6: return Microsoft;
case 7: return Reserved;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QUuid::Version
*/
@QtRejectedEntries({"Name"})
public enum Version implements QtEnumerator {
/**
* Representing QUuid:: VerUnknown
*/
VerUnknown(-1),
/**
* Representing QUuid:: Time
*/
Time(1),
/**
* Representing QUuid:: EmbeddedPOSIX
*/
EmbeddedPOSIX(2),
/**
* Representing QUuid:: Md5
*/
Md5(3),
/**
* Representing QUuid:: Name
*/
Name(3),
/**
* Representing QUuid:: Random
*/
Random(4),
/**
* Representing QUuid:: Sha1
*/
Sha1(5);
static {
QtJambi_LibraryUtilities.initialize();
}
private Version(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull Version resolve(int value) {
switch (value) {
case -1: return VerUnknown;
case 1: return Time;
case 2: return EmbeddedPOSIX;
case 3: return Md5;
case 4: return Random;
case 5: return Sha1;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt class QUuid::Id128Bytes
*/
public static final class Id128Bytes extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QUuid::Id128Bytes:: Id128Bytes()
*/
public Id128Bytes(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(Id128Bytes instance);
/**
* See QUuid::Id128Bytes:: Id128Bytes(QUuid::Id128Bytes)
*/
public Id128Bytes(io.qt.core.QUuid.@NonNull Id128Bytes other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(Id128Bytes instance, io.qt.core.QUuid.Id128Bytes other);
/**
* See QUuid::Id128Bytes:: operator QByteArrayView()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QByteArrayView toByteArrayView(){
return toByteArrayView_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QByteArrayView toByteArrayView_native_constfct(long __this__nativeId);
/**
* See operator==(QUuid::Id128Bytes, QUuid::Id128Bytes)
*/
@QtUninvokable
public final boolean equals(io.qt.core.QUuid.@NonNull Id128Bytes v2){
return equals_native_cref_QUuid_Id128Bytes(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(v2));
}
@QtUninvokable
private native boolean equals_native_cref_QUuid_Id128Bytes(long __this__nativeId, long v2);
/**
* See QUuid::Id128Bytes:: data
*/
@QtUninvokable
public final void setData(byte[] data){
if (data.length != 16)
throw new IllegalArgumentException("Argument 'data': Wrong number of elements in array. Found: " + data.length + ", expected: 16");
setData_native_cref_quint8_16_(QtJambi_LibraryUtilities.internal.nativeId(this), data);
}
@QtUninvokable
private native void setData_native_cref_quint8_16_(long __this__nativeId, byte[] data);
/**
* See QUuid::Id128Bytes:: data
*/
@QtUninvokable
public final byte[] data(){
return data_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native byte[] data_native(long __this__nativeId);
/**
* See QUuid::Id128Bytes:: data16
*/
@QtUninvokable
public final void setData16(short[] data16){
if (data16.length != 8)
throw new IllegalArgumentException("Argument 'data16': Wrong number of elements in array. Found: " + data16.length + ", expected: 8");
setData16_native_cref_quint16_8_(QtJambi_LibraryUtilities.internal.nativeId(this), data16);
}
@QtUninvokable
private native void setData16_native_cref_quint16_8_(long __this__nativeId, short[] data16);
/**
* See QUuid::Id128Bytes:: data16
*/
@QtUninvokable
public final short[] data16(){
return data16_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native short[] data16_native(long __this__nativeId);
/**
* See QUuid::Id128Bytes:: data32
*/
@QtUninvokable
public final void setData32(int[] data32){
if (data32.length != 4)
throw new IllegalArgumentException("Argument 'data32': Wrong number of elements in array. Found: " + data32.length + ", expected: 4");
setData32_native_cref_quint32_4_(QtJambi_LibraryUtilities.internal.nativeId(this), data32);
}
@QtUninvokable
private native void setData32_native_cref_quint32_4_(long __this__nativeId, int[] data32);
/**
* See QUuid::Id128Bytes:: data32
*/
@QtUninvokable
public final int[] data32(){
return data32_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int[] data32_native(long __this__nativeId);
/**
* See QUuid::Id128Bytes:: data64
*/
@QtUninvokable
public final void setData64(long[] data64){
if (data64.length != 2)
throw new IllegalArgumentException("Argument 'data64': Wrong number of elements in array. Found: " + data64.length + ", expected: 2");
setData64_native_cref_quint64_2_(QtJambi_LibraryUtilities.internal.nativeId(this), data64);
}
@QtUninvokable
private native void setData64_native_cref_quint64_2_(long __this__nativeId, long[] data64);
/**
* See QUuid::Id128Bytes:: data64
*/
@QtUninvokable
public final long[] data64(){
return data64_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native long[] data64_native(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected Id128Bytes(QPrivateConstructor p) { super(p); }
/**
* See operator==(QUuid::Id128Bytes, QUuid::Id128Bytes)
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.core.QUuid.Id128Bytes) {
return equals((io.qt.core.QUuid.Id128Bytes) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QUuid::Id128Bytes)
.
*/
@QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native static int hashCode_native(long __this_nativeId);
/**
* Create instance from set of bytes.
* @param data
* @throws IllegalArgumentException if number of bytes is not 16
*/
public Id128Bytes(byte... data) throws IllegalArgumentException{
this();
setData(data);
}
/**
* Create instance from set of short values.
* @param data
* @throws IllegalArgumentException if number of short values is not 8
*/
public Id128Bytes(short... data) throws IllegalArgumentException{
this();
setData16(data);
}
/**
* Create instance from set of int values.
* @param data
* @throws IllegalArgumentException if number of int values is not 4
*/
public Id128Bytes(int... data) throws IllegalArgumentException{
this();
setData32(data);
}
/**
* Create instance from set of long values.
* @param data
* @throws IllegalArgumentException if number of long values is not 2
*/
public Id128Bytes(long... data) throws IllegalArgumentException{
this();
setData64(data);
}
/**
* Create instance from set of bytes.
* @param data
* @throws IllegalArgumentException if number of bytes is not 16
*/
public static Id128Bytes of(byte... data) throws IllegalArgumentException{
return new Id128Bytes(data);
}
/**
* Create instance from set of short values.
* @param data
* @throws IllegalArgumentException if number of short values is not 8
*/
public static Id128Bytes of(short... data) throws IllegalArgumentException{
return new Id128Bytes(data);
}
/**
* Create instance from set of int values.
* @param data
* @throws IllegalArgumentException if number of int values is not 4
*/
public static Id128Bytes of(int... data) throws IllegalArgumentException{
return new Id128Bytes(data);
}
/**
* Create instance from set of long values.
* @param data
* @throws IllegalArgumentException if number of long values is not 2
*/
public static Id128Bytes of(long... data) throws IllegalArgumentException{
return new Id128Bytes(data);
}
/**
* Creates and returns a copy of this object.
See QUuid::Id128Bytes:: Id128Bytes(QUuid::Id128Bytes)
*/
@QtUninvokable
@Override
public Id128Bytes clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native Id128Bytes clone_native(long __this_nativeId);
/**
* @hidden
* Kotlin property getter. In Java use {@link #data()} instead.
*/
@QtUninvokable
public final byte[] getData() {
return data();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #data16()} instead.
*/
@QtUninvokable
public final short[] getData16() {
return data16();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #data32()} instead.
*/
@QtUninvokable
public final int[] getData32() {
return data32();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #data64()} instead.
*/
@QtUninvokable
public final long[] getData64() {
return data64();
}
}
/**
* See QUuid:: QUuid()
*/
public QUuid(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QUuid instance);
/**
* See QUuid:: QUuid(QAnyStringView)
*/
public QUuid(java.lang.@NonNull String string){
super((QPrivateConstructor)null);
initialize_native(this, string);
}
private native static void initialize_native(QUuid instance, java.lang.String string);
/**
* See QUuid:: QUuid(QUuid)
*/
public QUuid(io.qt.core.@NonNull QUuid other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QUuid instance, io.qt.core.QUuid other);
/**
* See QUuid:: QUuid(QUuid::Id128Bytes, QSysInfo::Endian)
*/
public QUuid(io.qt.core.QUuid.@NonNull Id128Bytes id128, io.qt.core.QSysInfo.@NonNull Endian order){
super((QPrivateConstructor)null);
initialize_native(this, id128, order);
}
private native static void initialize_native(QUuid instance, io.qt.core.QUuid.Id128Bytes id128, io.qt.core.QSysInfo.Endian order);
/**
* See QUuid:: QUuid(uint, ushort, ushort, uchar, uchar, uchar, uchar, uchar, uchar, uchar, uchar)
*/
public QUuid(int l, short w1, short w2, byte b1, byte b2, byte b3, byte b4, byte b5, byte b6, byte b7, byte b8){
super((QPrivateConstructor)null);
initialize_native(this, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8);
}
private native static void initialize_native(QUuid instance, int l, short w1, short w2, byte b1, byte b2, byte b3, byte b4, byte b5, byte b6, byte b7, byte b8);
/**
*
*/
@QtUninvokable
public final boolean isNull(){
return isNull_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isNull_native_constfct(long __this__nativeId);
/**
* See QUuid:: operator<(QUuid)const
*/
@QtUninvokable
private final boolean operator_less(io.qt.core.@NonNull QUuid other){
return operator_less_native_cref_QUuid_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native boolean operator_less_native_cref_QUuid_constfct(long __this__nativeId, long other);
/**
* See operator<<(QDataStream&, QUuid)
*/
@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 QUuid:: operator==(QUuid)const
*/
@QtUninvokable
public final boolean equals(io.qt.core.@NonNull QUuid orig){
return equals_native_cref_QUuid_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(orig));
}
@QtUninvokable
private native boolean equals_native_cref_QUuid_constfct(long __this__nativeId, long orig);
/**
* See operator>>(QDataStream&, QUuid&)
*/
@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 QUuid:: toByteArray(QUuid::StringFormat)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QByteArray toByteArray(io.qt.core.QUuid.@NonNull StringFormat mode){
return toByteArray_native_QUuid_StringFormat_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value());
}
@QtUninvokable
private native io.qt.core.QByteArray toByteArray_native_QUuid_StringFormat_constfct(long __this__nativeId, int mode);
/**
* See QUuid:: toBytes(QSysInfo::Endian)const
*/
@QtUninvokable
public final io.qt.core.QUuid.@NonNull Id128Bytes toBytes(io.qt.core.QSysInfo.@NonNull Endian order){
return toBytes_native_QSysInfo_Endian_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), order.value());
}
@QtUninvokable
private native io.qt.core.QUuid.Id128Bytes toBytes_native_QSysInfo_Endian_constfct(long __this__nativeId, int order);
/**
*
*/
@QtUninvokable
public final io.qt.core.@NonNull QByteArray toRfc4122(){
return toRfc4122_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QByteArray toRfc4122_native_constfct(long __this__nativeId);
/**
* See QUuid:: toString(QUuid::StringFormat)const
*/
@QtUninvokable
public final java.lang.@NonNull String toString(io.qt.core.QUuid.@NonNull StringFormat mode){
return toString_native_QUuid_StringFormat_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value());
}
@QtUninvokable
private native java.lang.String toString_native_QUuid_StringFormat_constfct(long __this__nativeId, int mode);
/**
*
*/
@QtUninvokable
public final io.qt.core.QUuid.@NonNull Variant variant(){
return io.qt.core.QUuid.Variant.resolve(variant_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int variant_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final io.qt.core.QUuid.@NonNull Version version(){
return io.qt.core.QUuid.Version.resolve(version_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int version_native_constfct(long __this__nativeId);
/**
*
*/
public native static io.qt.core.@NonNull QUuid createUuid();
/**
* See QUuid:: createUuidV3(QUuid, QByteArray)
*/
public static io.qt.core.@NonNull QUuid createUuidV3(io.qt.core.@NonNull QUuid ns, io.qt.core.@NonNull QByteArray baseData){
return createUuidV3_native_cref_QUuid_cref_QByteArray(QtJambi_LibraryUtilities.internal.checkedNativeId(ns), QtJambi_LibraryUtilities.internal.checkedNativeId(baseData));
}
private native static io.qt.core.QUuid createUuidV3_native_cref_QUuid_cref_QByteArray(long ns, long baseData);
/**
* See QUuid:: createUuidV3(QUuid, QString)
*/
public static io.qt.core.@NonNull QUuid createUuidV3(io.qt.core.@NonNull QUuid ns, java.lang.@NonNull String baseData){
return createUuidV3_native_cref_QUuid_cref_QString(QtJambi_LibraryUtilities.internal.checkedNativeId(ns), baseData);
}
private native static io.qt.core.QUuid createUuidV3_native_cref_QUuid_cref_QString(long ns, java.lang.String baseData);
/**
* See QUuid:: createUuidV5(QUuid, QByteArray)
*/
public static io.qt.core.@NonNull QUuid createUuidV5(io.qt.core.@NonNull QUuid ns, io.qt.core.@NonNull QByteArray baseData){
return createUuidV5_native_cref_QUuid_cref_QByteArray(QtJambi_LibraryUtilities.internal.checkedNativeId(ns), QtJambi_LibraryUtilities.internal.checkedNativeId(baseData));
}
private native static io.qt.core.QUuid createUuidV5_native_cref_QUuid_cref_QByteArray(long ns, long baseData);
/**
* See QUuid:: createUuidV5(QUuid, QString)
*/
public static io.qt.core.@NonNull QUuid createUuidV5(io.qt.core.@NonNull QUuid ns, java.lang.@NonNull String baseData){
return createUuidV5_native_cref_QUuid_cref_QString(QtJambi_LibraryUtilities.internal.checkedNativeId(ns), baseData);
}
private native static io.qt.core.QUuid createUuidV5_native_cref_QUuid_cref_QString(long ns, java.lang.String baseData);
/**
* See QUuid:: fromBytes(const void*, QSysInfo::Endian)
*/
public static io.qt.core.@NonNull QUuid fromBytes(io.qt.core.QUuid.@StrictNonNull Id128Bytes bytes, io.qt.core.QSysInfo.@NonNull Endian order){
java.util.Objects.requireNonNull(bytes, "Argument 'bytes': null not expected.");
return fromBytes_native_const_void_ptr_QSysInfo_Endian(bytes, order.value());
}
private native static io.qt.core.QUuid fromBytes_native_const_void_ptr_QSysInfo_Endian(io.qt.core.QUuid.Id128Bytes bytes, int order);
/**
* See QUuid:: fromRfc4122(QByteArrayView)
*/
public static io.qt.core.@NonNull QUuid fromRfc4122(io.qt.core.@NonNull QByteArrayView arg__1){
return fromRfc4122_native_QByteArrayView(QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
private native static io.qt.core.QUuid fromRfc4122_native_QByteArrayView(long arg__1);
/**
* See QUuid:: fromString(QAnyStringView)
*/
public native static io.qt.core.@NonNull QUuid fromString(java.lang.@NonNull String string);
/**
* See QUuid:: data1
*/
@QtUninvokable
public final void setData1(int data1){
setData1_native_uint(QtJambi_LibraryUtilities.internal.nativeId(this), data1);
}
@QtUninvokable
private native void setData1_native_uint(long __this__nativeId, int data1);
/**
* See QUuid:: data1
*/
@QtUninvokable
public final int data1(){
return data1_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int data1_native(long __this__nativeId);
/**
* See QUuid:: data2
*/
@QtUninvokable
public final void setData2(short data2){
setData2_native_ushort(QtJambi_LibraryUtilities.internal.nativeId(this), data2);
}
@QtUninvokable
private native void setData2_native_ushort(long __this__nativeId, short data2);
/**
* See QUuid:: data2
*/
@QtUninvokable
public final short data2(){
return data2_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native short data2_native(long __this__nativeId);
/**
* See QUuid:: data3
*/
@QtUninvokable
public final void setData3(short data3){
setData3_native_ushort(QtJambi_LibraryUtilities.internal.nativeId(this), data3);
}
@QtUninvokable
private native void setData3_native_ushort(long __this__nativeId, short data3);
/**
* See QUuid:: data3
*/
@QtUninvokable
public final short data3(){
return data3_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native short data3_native(long __this__nativeId);
/**
* See QUuid:: data4
*/
@QtUninvokable
public final void setData4(byte[] data4){
if (data4.length != 8)
throw new IllegalArgumentException("Argument 'data4': Wrong number of elements in array. Found: " + data4.length + ", expected: 8");
setData4_native_cref_uchar_8_(QtJambi_LibraryUtilities.internal.nativeId(this), data4);
}
@QtUninvokable
private native void setData4_native_cref_uchar_8_(long __this__nativeId, byte[] data4);
/**
* See QUuid:: data4
*/
@QtUninvokable
public final byte[] data4(){
return data4_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native byte[] data4_native(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QUuid(QPrivateConstructor p) { super(p); }
/**
* See QUuid:: operator==(QUuid)const
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.core.QUuid) {
return equals((io.qt.core.QUuid) other);
}
return false;
}
/**
* See QUuid:: operator<(QUuid)const
*/
/**
* {@inheritDoc}
*/
@QtUninvokable
public int compareTo(io.qt.core.@StrictNonNull QUuid other) {
if (equals(other)) return 0;
else if (operator_less(other)) return -1;
else return 1;
}
/**
* Returns the objects's hash code computed by qHash(QUuid)
.
*/
@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 QUuid:: QUuid(QUuid)
*/
@QtUninvokable
@Override
public QUuid clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QUuid clone_native(long __this_nativeId);
/**
* Overloaded constructor for {@link #QUuid(io.qt.core.QUuid.Id128Bytes, io.qt.core.QSysInfo.Endian)}
* with order = io.qt.core.QSysInfo.Endian.BigEndian
.
*/
public QUuid(io.qt.core.QUuid.@NonNull Id128Bytes id128) {
this(id128, io.qt.core.QSysInfo.Endian.BigEndian);
}
/**
* Overloaded function for {@link #toByteArray(io.qt.core.QUuid.StringFormat)}
* with mode = io.qt.core.QUuid.StringFormat.WithBraces
.
*/
@QtUninvokable
public final io.qt.core.@NonNull QByteArray toByteArray() {
return toByteArray(io.qt.core.QUuid.StringFormat.WithBraces);
}
/**
* Overloaded function for {@link #toBytes(io.qt.core.QSysInfo.Endian)}
* with order = io.qt.core.QSysInfo.Endian.BigEndian
.
*/
@QtUninvokable
public final io.qt.core.QUuid.@NonNull Id128Bytes toBytes() {
return toBytes(io.qt.core.QSysInfo.Endian.BigEndian);
}
/**
* Overloaded function for {@link #toString(io.qt.core.QUuid.StringFormat)}
* with mode = io.qt.core.QUuid.StringFormat.WithBraces
.
*/
@QtUninvokable
public final java.lang.@NonNull String toString() {
return toString(io.qt.core.QUuid.StringFormat.WithBraces);
}
/**
* Overloaded function for {@link #createUuidV3(io.qt.core.QUuid, io.qt.core.QByteArray)}.
*/
public static io.qt.core.@NonNull QUuid createUuidV3(io.qt.core.@NonNull QUuid ns, byte @NonNull[] baseData) {
return createUuidV3(ns, new io.qt.core.QByteArray(baseData));
}
/**
* Overloaded function for {@link #createUuidV5(io.qt.core.QUuid, io.qt.core.QByteArray)}.
*/
public static io.qt.core.@NonNull QUuid createUuidV5(io.qt.core.@NonNull QUuid ns, byte @NonNull[] baseData) {
return createUuidV5(ns, new io.qt.core.QByteArray(baseData));
}
/**
* Overloaded function for {@link #fromBytes(io.qt.core.QUuid.Id128Bytes, io.qt.core.QSysInfo.Endian)}
* with order = io.qt.core.QSysInfo.Endian.BigEndian
.
*/
public static io.qt.core.@NonNull QUuid fromBytes(io.qt.core.QUuid.@StrictNonNull Id128Bytes bytes) {
return fromBytes(bytes, io.qt.core.QSysInfo.Endian.BigEndian);
}
/**
* Overloaded function for {@link #fromRfc4122(io.qt.core.QByteArrayView)}.
*/
public static io.qt.core.@NonNull QUuid fromRfc4122(io.qt.core.@NonNull QByteArray arg__1) {
return fromRfc4122(new io.qt.core.QByteArrayView(arg__1));
}
/**
* Overloaded function for {@link #fromRfc4122(io.qt.core.QByteArrayView)}.
*/
public static io.qt.core.@NonNull QUuid fromRfc4122(java.nio.@NonNull ByteBuffer arg__1) {
return fromRfc4122(new io.qt.core.QByteArrayView(arg__1));
}
/**
* Overloaded function for {@link #fromRfc4122(io.qt.core.QByteArrayView)}.
*/
public static io.qt.core.@NonNull QUuid fromRfc4122(byte @NonNull[] arg__1) {
return fromRfc4122(new io.qt.core.QByteArrayView(arg__1));
}
/**
* Overloaded function for {@link #fromRfc4122(io.qt.core.QByteArrayView)}.
*/
public static io.qt.core.@NonNull QUuid fromRfc4122(java.lang.@NonNull String arg__1) {
return fromRfc4122(new io.qt.core.QByteArrayView(arg__1));
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #data1()} instead.
*/
@QtUninvokable
public final int getData1() {
return data1();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #data2()} instead.
*/
@QtUninvokable
public final short getData2() {
return data2();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #data3()} instead.
*/
@QtUninvokable
public final short getData3() {
return data3();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #data4()} instead.
*/
@QtUninvokable
public final byte[] getData4() {
return data4();
}
}