- 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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description MemoryMapFlags(int value)
Creates a new MemoryMapFlags with givenvalue
.MemoryMapFlags(QFileDevice.MemoryMapFlag... args)
Creates a new MemoryMapFlags where the flags inargs
are set. -
Method Summary
Modifier and Type Method Description QFileDevice.MemoryMapFlags
clone()
Clones the flagsQFileDevice.MemoryMapFlags
combined(QFileDevice.MemoryMapFlag e)
Combines this flags with enum entry.int
compareTo(QFileDevice.MemoryMapFlags other)
QFileDevice.MemoryMapFlag[]
flags()
Returns an array of flag objects represented by this MemoryMapFlags.QFileDevice.MemoryMapFlags
setFlag(QFileDevice.MemoryMapFlag e)
Sets the flage
QFileDevice.MemoryMapFlags
setFlag(QFileDevice.MemoryMapFlag e, boolean on)
Sets or clears the flagflag
-
Constructor Details
-
MemoryMapFlags
Creates a new MemoryMapFlags where the flags inargs
are 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:
combined
in classQFlags<QFileDevice.MemoryMapFlag>
- Parameters:
e
- enum entry- Returns:
- new MemoryMapFlags
-
setFlag
Sets the flage
- Overrides:
setFlag
in classQFlags<QFileDevice.MemoryMapFlag>
- Parameters:
e
- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag
- Overrides:
setFlag
in 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:
flags
in classQFlags<QFileDevice.MemoryMapFlag>
- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clone
in classQFlags<QFileDevice.MemoryMapFlag>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QFileDevice.MemoryMapFlags>
-