- All Implemented Interfaces:
Serializable,Cloneable,Comparable<QFileDevice.MemoryMapFlags>
- Enclosing class:
QFileDevice
public static final class QFileDevice.MemoryMapFlags
extends QFlags<QFileDevice.MemoryMapFlag>
implements Comparable<QFileDevice.MemoryMapFlags>
QFlags type for enum
QFileDevice.MemoryMapFlag- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMemoryMapFlags(int value) Creates a new MemoryMapFlags with givenvalue.MemoryMapFlags(QFileDevice.MemoryMapFlag... args) Creates a new MemoryMapFlags where the flags inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionclone()Clones the flagsCombines this flags with enum entry.final intfinal QFileDevice.MemoryMapFlag[]flags()Returns an array of flag objects represented by this MemoryMapFlags.Sets the flagesetFlag(QFileDevice.MemoryMapFlag e, boolean on) Sets or clears the flagflag
-
Constructor Details
-
MemoryMapFlags
Creates a new MemoryMapFlags where the flags inargsare set.- Parameters:
args- enum entries
-
MemoryMapFlags
public MemoryMapFlags(int value) Creates a new MemoryMapFlags with givenvalue.- Parameters:
value-
-
-
Method Details
-
combined
Combines this flags with enum entry.- Overrides:
combinedin classQFlags<QFileDevice.MemoryMapFlag>- Parameters:
e- enum entry- Returns:
- new MemoryMapFlags
-
setFlag
Sets the flage- Overrides:
setFlagin classQFlags<QFileDevice.MemoryMapFlag>- Parameters:
e- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag- Overrides:
setFlagin classQFlags<QFileDevice.MemoryMapFlag>- Parameters:
e- enum entryon- set (true) or clear (false)- Returns:
- this
-
flags
Returns an array of flag objects represented by this MemoryMapFlags.- Overrides:
flagsin classQFlags<QFileDevice.MemoryMapFlag>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<QFileDevice.MemoryMapFlag>
-
compareTo
- Specified by:
compareToin interfaceComparable<QFileDevice.MemoryMapFlags>
-