io.qt.core.QDateTime Maven / Gradle / Ivy
package io.qt.core;
/**
* Date and time functions
* Java wrapper for Qt class QDateTime
*/
public class QDateTime extends io.qt.QtObject
implements java.lang.Comparable,
java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum QDateTime::YearRange
*/
public enum YearRange implements io.qt.QtEnumerator {
First(-292275056),
Last(292278994);
private YearRange(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 YearRange resolve(int value) {
switch (value) {
case -292275056: return First;
case 292278994: return Last;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
*
*/
public QDateTime(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QDateTime instance);
/**
* Overloaded constructor for {@link #QDateTime(io.qt.core.QDate, io.qt.core.QTime, io.qt.core.Qt.TimeSpec, int)}
* with offsetSeconds = 0
.
*/
public QDateTime(io.qt.core.QDate date, io.qt.core.QTime time, io.qt.core.Qt.TimeSpec spec) {
this(date, time, spec, (int)0);
}
/**
* Overloaded constructor for {@link #QDateTime(io.qt.core.QDate, io.qt.core.QTime, io.qt.core.Qt.TimeSpec, int)}
* with:
* spec = io.qt.core.Qt.TimeSpec.LocalTime
* offsetSeconds = 0
*
*/
public QDateTime(io.qt.core.QDate date, io.qt.core.QTime time) {
this(date, time, io.qt.core.Qt.TimeSpec.LocalTime, (int)0);
}
/**
* See QDateTime::QDateTime(QDate,QTime,Qt::TimeSpec,int)
*/
public QDateTime(io.qt.core.QDate date, io.qt.core.QTime time, io.qt.core.Qt.TimeSpec spec, int offsetSeconds){
super((QPrivateConstructor)null);
initialize_native(this, date, time, spec, offsetSeconds);
}
private native static void initialize_native(QDateTime instance, io.qt.core.QDate date, io.qt.core.QTime time, io.qt.core.Qt.TimeSpec spec, int offsetSeconds);
/**
* See QDateTime::QDateTime(QDate,QTime,QTimeZone)
*/
public QDateTime(io.qt.core.QDate date, io.qt.core.QTime time, io.qt.core.QTimeZone timeZone){
super((QPrivateConstructor)null);
initialize_native(this, date, time, timeZone);
}
private native static void initialize_native(QDateTime instance, io.qt.core.QDate date, io.qt.core.QTime time, io.qt.core.QTimeZone timeZone);
/**
* See QDateTime::QDateTime(QDateTime)
*/
public QDateTime(io.qt.core.QDateTime other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QDateTime instance, io.qt.core.QDateTime other);
/**
* See QDateTime::addDays(qint64)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QDateTime addDays(long days){
return addDays_native_long_long_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), days);
}
@io.qt.QtUninvokable
private native io.qt.core.QDateTime addDays_native_long_long_constfct(long __this__nativeId, long days);
/**
* See QDateTime::addMSecs(qint64)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QDateTime addMSecs(long msecs){
return addMSecs_native_long_long_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), msecs);
}
@io.qt.QtUninvokable
private native io.qt.core.QDateTime addMSecs_native_long_long_constfct(long __this__nativeId, long msecs);
/**
* See QDateTime::addMonths(int)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QDateTime addMonths(int months){
return addMonths_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), months);
}
@io.qt.QtUninvokable
private native io.qt.core.QDateTime addMonths_native_int_constfct(long __this__nativeId, int months);
/**
* See QDateTime::addSecs(qint64)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QDateTime addSecs(long secs){
return addSecs_native_long_long_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), secs);
}
@io.qt.QtUninvokable
private native io.qt.core.QDateTime addSecs_native_long_long_constfct(long __this__nativeId, long secs);
/**
* See QDateTime::addYears(int)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QDateTime addYears(int years){
return addYears_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), years);
}
@io.qt.QtUninvokable
private native io.qt.core.QDateTime addYears_native_int_constfct(long __this__nativeId, int years);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QDate date(){
return date_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QDate date_native_constfct(long __this__nativeId);
/**
* See QDateTime::daysTo(QDateTime)const
*/
@io.qt.QtUninvokable
public final long daysTo(io.qt.core.QDateTime arg__1){
return daysTo_native_cref_QDateTime_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native long daysTo_native_cref_QDateTime_constfct(long __this__nativeId, long arg__1);
/**
* See QDateTime::isDaylightTime()const
*/
@io.qt.QtUninvokable
public final boolean isDaylightTime(){
return isDaylightTime_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isDaylightTime_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final boolean isNull(){
return isNull_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isNull_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final boolean isValid(){
return isValid_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isValid_native_constfct(long __this__nativeId);
/**
* See QDateTime::msecsTo(QDateTime)const
*/
@io.qt.QtUninvokable
public final long msecsTo(io.qt.core.QDateTime arg__1){
return msecsTo_native_cref_QDateTime_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native long msecsTo_native_cref_QDateTime_constfct(long __this__nativeId, long arg__1);
/**
* See QDateTime::offsetFromUtc()const
*/
@io.qt.QtUninvokable
public final int offsetFromUtc(){
return offsetFromUtc_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int offsetFromUtc_native_constfct(long __this__nativeId);
@io.qt.QtUninvokable
private final boolean operator_less(io.qt.core.QDateTime rhs){
return operator_less_native_cref_QDateTime(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rhs));
}
@io.qt.QtUninvokable
private native boolean operator_less_native_cref_QDateTime(long __this__nativeId, long rhs);
@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);
@io.qt.QtUninvokable
private final boolean operator_equal(io.qt.core.QDateTime rhs){
return operator_equal_native_cref_QDateTime(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rhs));
}
@io.qt.QtUninvokable
private native boolean operator_equal_native_cref_QDateTime(long __this__nativeId, long rhs);
@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 QDateTime::secsTo(QDateTime)const
*/
@io.qt.QtUninvokable
public final long secsTo(io.qt.core.QDateTime arg__1){
return secsTo_native_cref_QDateTime_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native long secsTo_native_cref_QDateTime_constfct(long __this__nativeId, long arg__1);
/**
*
*/
@io.qt.QtUninvokable
public final void setDate(io.qt.core.QDate date){
setDate_native_QDate(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(date));
}
@io.qt.QtUninvokable
private native void setDate_native_QDate(long __this__nativeId, long date);
/**
* See QDateTime::setMSecsSinceEpoch(qint64)
*/
@io.qt.QtUninvokable
public final void setMSecsSinceEpoch(long msecs){
setMSecsSinceEpoch_native_long_long(QtJambi_LibraryUtilities.internal.nativeId(this), msecs);
}
@io.qt.QtUninvokable
private native void setMSecsSinceEpoch_native_long_long(long __this__nativeId, long msecs);
/**
* See QDateTime::setOffsetFromUtc(int)
*/
@io.qt.QtUninvokable
public final void setOffsetFromUtc(int offsetSeconds){
setOffsetFromUtc_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), offsetSeconds);
}
@io.qt.QtUninvokable
private native void setOffsetFromUtc_native_int(long __this__nativeId, int offsetSeconds);
/**
* See QDateTime::setSecsSinceEpoch(qint64)
*/
@io.qt.QtUninvokable
public final void setSecsSinceEpoch(long secs){
setSecsSinceEpoch_native_long_long(QtJambi_LibraryUtilities.internal.nativeId(this), secs);
}
@io.qt.QtUninvokable
private native void setSecsSinceEpoch_native_long_long(long __this__nativeId, long secs);
/**
*
*/
@io.qt.QtUninvokable
public final void setTime(io.qt.core.QTime time){
setTime_native_QTime(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(time));
}
@io.qt.QtUninvokable
private native void setTime_native_QTime(long __this__nativeId, long time);
/**
* See QDateTime::setTimeSpec(Qt::TimeSpec)
*/
@io.qt.QtUninvokable
public final void setTimeSpec(io.qt.core.Qt.TimeSpec spec){
setTimeSpec_native_Qt_TimeSpec(QtJambi_LibraryUtilities.internal.nativeId(this), spec.value());
}
@io.qt.QtUninvokable
private native void setTimeSpec_native_Qt_TimeSpec(long __this__nativeId, int spec);
/**
* See QDateTime::setTimeZone(QTimeZone)
*/
@io.qt.QtUninvokable
public final void setTimeZone(io.qt.core.QTimeZone toZone){
setTimeZone_native_cref_QTimeZone(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(toZone));
}
@io.qt.QtUninvokable
private native void setTimeZone_native_cref_QTimeZone(long __this__nativeId, long toZone);
/**
* See QDateTime::swap(QDateTime&)
*/
@io.qt.QtUninvokable
public final void swap(io.qt.core.QDateTime other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
swap_native_ref_QDateTime(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@io.qt.QtUninvokable
private native void swap_native_ref_QDateTime(long __this__nativeId, long other);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QTime time(){
return time_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QTime time_native_constfct(long __this__nativeId);
/**
* See QDateTime::timeSpec()const
*/
@io.qt.QtUninvokable
public final io.qt.core.Qt.TimeSpec timeSpec(){
return io.qt.core.Qt.TimeSpec.resolve(timeSpec_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int timeSpec_native_constfct(long __this__nativeId);
/**
* See QDateTime::timeZone()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QTimeZone timeZone(){
return timeZone_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QTimeZone timeZone_native_constfct(long __this__nativeId);
/**
* See QDateTime::timeZoneAbbreviation()const
*/
@io.qt.QtUninvokable
public final java.lang.String timeZoneAbbreviation(){
return timeZoneAbbreviation_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String timeZoneAbbreviation_native_constfct(long __this__nativeId);
/**
* See QDateTime::toLocalTime()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QDateTime toLocalTime(){
return toLocalTime_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QDateTime toLocalTime_native_constfct(long __this__nativeId);
/**
* See QDateTime::toMSecsSinceEpoch()const
*/
@io.qt.QtUninvokable
public final long toMSecsSinceEpoch(){
return toMSecsSinceEpoch_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native long toMSecsSinceEpoch_native_constfct(long __this__nativeId);
/**
* See QDateTime::toOffsetFromUtc(int)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QDateTime toOffsetFromUtc(int offsetSeconds){
return toOffsetFromUtc_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), offsetSeconds);
}
@io.qt.QtUninvokable
private native io.qt.core.QDateTime toOffsetFromUtc_native_int_constfct(long __this__nativeId, int offsetSeconds);
/**
* See QDateTime::toSecsSinceEpoch()const
*/
@io.qt.QtUninvokable
public final long toSecsSinceEpoch(){
return toSecsSinceEpoch_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native long toSecsSinceEpoch_native_constfct(long __this__nativeId);
/**
* Overloaded function for {@link #toString(io.qt.core.Qt.DateFormat)}
* with format = io.qt.core.Qt.DateFormat.TextDate
.
*/
@io.qt.QtUninvokable
public final java.lang.String toString() {
return toString(io.qt.core.Qt.DateFormat.TextDate);
}
/**
* See QDateTime::toString(Qt::DateFormat)const
*/
@io.qt.QtUninvokable
public final java.lang.String toString(io.qt.core.Qt.DateFormat format){
return toString_native_Qt_DateFormat_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), format.value());
}
@io.qt.QtUninvokable
private native java.lang.String toString_native_Qt_DateFormat_constfct(long __this__nativeId, int format);
/**
* Overloaded function for {@link #toString(java.lang.String, io.qt.core.QCalendar)}
* with cal = new io.qt.core.QCalendar()
.
*/
@io.qt.QtUninvokable
public final java.lang.String toString(java.lang.String format) {
return toString(format, new io.qt.core.QCalendar());
}
/**
* See QDateTime::toString(QString,QCalendar)const
*/
@io.qt.QtUninvokable
public final java.lang.String toString(java.lang.String format, io.qt.core.QCalendar cal){
return toString_native_cref_QString_QCalendar_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), format, QtJambi_LibraryUtilities.internal.checkedNativeId(cal));
}
@io.qt.QtUninvokable
private native java.lang.String toString_native_cref_QString_QCalendar_constfct(long __this__nativeId, java.lang.String format, long cal);
/**
* See QDateTime::toTimeSpec(Qt::TimeSpec)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QDateTime toTimeSpec(io.qt.core.Qt.TimeSpec spec){
return toTimeSpec_native_Qt_TimeSpec_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), spec.value());
}
@io.qt.QtUninvokable
private native io.qt.core.QDateTime toTimeSpec_native_Qt_TimeSpec_constfct(long __this__nativeId, int spec);
/**
* See QDateTime::toTimeZone(QTimeZone)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QDateTime toTimeZone(io.qt.core.QTimeZone toZone){
return toTimeZone_native_cref_QTimeZone_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(toZone));
}
@io.qt.QtUninvokable
private native io.qt.core.QDateTime toTimeZone_native_cref_QTimeZone_constfct(long __this__nativeId, long toZone);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QDateTime toUTC(){
return toUTC_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QDateTime toUTC_native_constfct(long __this__nativeId);
/**
* See QDateTime::currentDateTime()
*/
public native static io.qt.core.QDateTime currentDateTime();
/**
* See QDateTime::currentDateTimeUtc()
*/
public native static io.qt.core.QDateTime currentDateTimeUtc();
/**
* See QDateTime::currentMSecsSinceEpoch()
*/
public native static long currentMSecsSinceEpoch();
/**
* See QDateTime::currentSecsSinceEpoch()
*/
public native static long currentSecsSinceEpoch();
/**
* Overloaded function for {@link #fromMSecsSinceEpoch(long, io.qt.core.Qt.TimeSpec, int)}
* with offsetFromUtc = 0
.
*/
public static io.qt.core.QDateTime fromMSecsSinceEpoch(long msecs, io.qt.core.Qt.TimeSpec spec) {
return fromMSecsSinceEpoch(msecs, spec, (int)0);
}
/**
* Overloaded function for {@link #fromMSecsSinceEpoch(long, io.qt.core.Qt.TimeSpec, int)}
* with:
* spec = io.qt.core.Qt.TimeSpec.LocalTime
* offsetFromUtc = 0
*
*/
public static io.qt.core.QDateTime fromMSecsSinceEpoch(long msecs) {
return fromMSecsSinceEpoch(msecs, io.qt.core.Qt.TimeSpec.LocalTime, (int)0);
}
/**
* See QDateTime::fromMSecsSinceEpoch(qint64,Qt::TimeSpec,int)
*/
public static io.qt.core.QDateTime fromMSecsSinceEpoch(long msecs, io.qt.core.Qt.TimeSpec spec, int offsetFromUtc){
return fromMSecsSinceEpoch_native_long_long_Qt_TimeSpec_int(msecs, spec.value(), offsetFromUtc);
}
private native static io.qt.core.QDateTime fromMSecsSinceEpoch_native_long_long_Qt_TimeSpec_int(long msecs, int spec, int offsetFromUtc);
/**
* See QDateTime::fromMSecsSinceEpoch(qint64,QTimeZone)
*/
public static io.qt.core.QDateTime fromMSecsSinceEpoch(long msecs, io.qt.core.QTimeZone timeZone){
return fromMSecsSinceEpoch_native_long_long_cref_QTimeZone(msecs, QtJambi_LibraryUtilities.internal.checkedNativeId(timeZone));
}
private native static io.qt.core.QDateTime fromMSecsSinceEpoch_native_long_long_cref_QTimeZone(long msecs, long timeZone);
/**
* Overloaded function for {@link #fromSecsSinceEpoch(long, io.qt.core.Qt.TimeSpec, int)}
* with offsetFromUtc = 0
.
*/
public static io.qt.core.QDateTime fromSecsSinceEpoch(long secs, io.qt.core.Qt.TimeSpec spec) {
return fromSecsSinceEpoch(secs, spec, (int)0);
}
/**
* Overloaded function for {@link #fromSecsSinceEpoch(long, io.qt.core.Qt.TimeSpec, int)}
* with:
* spec = io.qt.core.Qt.TimeSpec.LocalTime
* offsetFromUtc = 0
*
*/
public static io.qt.core.QDateTime fromSecsSinceEpoch(long secs) {
return fromSecsSinceEpoch(secs, io.qt.core.Qt.TimeSpec.LocalTime, (int)0);
}
/**
* See QDateTime::fromSecsSinceEpoch(qint64,Qt::TimeSpec,int)
*/
public static io.qt.core.QDateTime fromSecsSinceEpoch(long secs, io.qt.core.Qt.TimeSpec spec, int offsetFromUtc){
return fromSecsSinceEpoch_native_long_long_Qt_TimeSpec_int(secs, spec.value(), offsetFromUtc);
}
private native static io.qt.core.QDateTime fromSecsSinceEpoch_native_long_long_Qt_TimeSpec_int(long secs, int spec, int offsetFromUtc);
/**
* See QDateTime::fromSecsSinceEpoch(qint64,QTimeZone)
*/
public static io.qt.core.QDateTime fromSecsSinceEpoch(long secs, io.qt.core.QTimeZone timeZone){
return fromSecsSinceEpoch_native_long_long_cref_QTimeZone(secs, QtJambi_LibraryUtilities.internal.checkedNativeId(timeZone));
}
private native static io.qt.core.QDateTime fromSecsSinceEpoch_native_long_long_cref_QTimeZone(long secs, long timeZone);
/**
* Overloaded function for {@link #fromString(java.lang.String, io.qt.core.Qt.DateFormat)}
* with format = io.qt.core.Qt.DateFormat.TextDate
.
*/
public static io.qt.core.QDateTime fromString(java.lang.String string) {
return fromString(string, io.qt.core.Qt.DateFormat.TextDate);
}
/**
* See QDateTime::fromString(QStringView,Qt::DateFormat)
*/
public static io.qt.core.QDateTime fromString(java.lang.String string, io.qt.core.Qt.DateFormat format){
return fromString_native_QStringView_Qt_DateFormat(string, format.value());
}
private native static io.qt.core.QDateTime fromString_native_QStringView_Qt_DateFormat(java.lang.String string, int format);
/**
* Overloaded function for {@link #fromString(java.lang.String, java.lang.String, io.qt.core.QCalendar)}
* with cal = new io.qt.core.QCalendar()
.
*/
public static io.qt.core.QDateTime fromString(java.lang.String string, java.lang.String format) {
return fromString(string, format, new io.qt.core.QCalendar());
}
/**
* See QDateTime::fromString(QString,QStringView,QCalendar)
*/
public static io.qt.core.QDateTime fromString(java.lang.String string, java.lang.String format, io.qt.core.QCalendar cal){
return fromString_native_cref_QString_QStringView_QCalendar(string, format, QtJambi_LibraryUtilities.internal.checkedNativeId(cal));
}
private native static io.qt.core.QDateTime fromString_native_cref_QString_QStringView_QCalendar(java.lang.String string, java.lang.String format, long cal);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QDateTime(QPrivateConstructor p) { super(p); }
@Override
@io.qt.QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.core.QDateTime) {
return operator_equal((io.qt.core.QDateTime) other);
}
return false;
}
@io.qt.QtUninvokable
public int compareTo(io.qt.core.QDateTime 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);
@Override
public QDateTime clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native QDateTime clone_native(long __this_nativeId);
}