io.qt.internal.MetaDataFlags 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.internal;
import io.qt.*;
/**
* Java wrapper for Qt enum MetaDataFlags
* @hidden
*/
public enum MetaDataFlags implements QtFlagEnumerator {
/**
* Representing IsUnresolvedType
*/
IsUnresolvedType(-2147483648),
/**
* Representing TypeNameIndexMask
*/
TypeNameIndexMask(2147483647),
/**
* Representing IsUnresolvedSignal
*/
IsUnresolvedSignal(1879048192);
static {
QtJambi_LibraryUtilities.initialize();
}
private MetaDataFlags(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Create a QFlags of the enum entry.
* @return QFlags
*/
public @NonNull MetaDataAttributes asFlags() {
return new MetaDataAttributes(value);
}
/**
* Combines this entry with other enum entry.
* @param e enum entry
* @return new flag
*/
public @NonNull MetaDataAttributes combined(@NonNull MetaDataFlags e) {
return asFlags().setFlag(e, true);
}
/**
* Excludes other enum entry from a flag of this entry.
* @param e enum entry
* @return new flag
*/
public @NonNull MetaDataAttributes cleared(@NonNull MetaDataFlags e) {
return asFlags().setFlag(e, false);
}
/**
* Creates a new {@link MetaDataAttributes} from the entries.
* @param values entries
* @return new flag
*/
public static @NonNull MetaDataAttributes flags(@Nullable MetaDataFlags @NonNull... values) {
return new MetaDataAttributes(values);
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull MetaDataFlags resolve(int value) {
switch (value) {
case -2147483648: return IsUnresolvedType;
case 2147483647: return TypeNameIndexMask;
case 1879048192: return IsUnresolvedSignal;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}