io.qt.core.QThreadStorage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qtjambi Show documentation
Show all versions of qtjambi Show documentation
QtJambi base module containing QtCore, QtGui and QtWidgets.
package io.qt.core;
import io.qt.*;
/**
* Per-thread data storage
* Java wrapper for Qt class QThreadStorage<JObjectWrapper>
*/
public class QThreadStorage extends QtObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QThreadStorage:: QThreadStorage()
*/
public QThreadStorage(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QThreadStorage instance);
/**
* See QThreadStorage:: hasLocalData()const
*/
@QtUninvokable
public final boolean hasLocalData(){
return hasLocalData_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean hasLocalData_native_constfct(long __this__nativeId);
/**
* See QThreadStorage:: localData()
*/
@QtUninvokable
public final @NonNull T localData(){
return localData_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native T localData_native(long __this__nativeId);
/**
* See QThreadStorage:: setLocalData(T)
*/
@QtUninvokable
public final void setLocalData(@NonNull T t){
setLocalData_native_JObjectWrapper(QtJambi_LibraryUtilities.internal.nativeId(this), t);
}
@QtUninvokable
private native void setLocalData_native_JObjectWrapper(long __this__nativeId, T t);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QThreadStorage(QPrivateConstructor p) { super(p); }
}