- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<QDir.SortFlags>
- Enclosing class:
QDir
public static final class QDir.SortFlags
extends QFlags<QDir.SortFlag>
implements Comparable<QDir.SortFlags>
QFlags type for enum
QDir.SortFlag
- See Also:
-
Constructor Summary
ConstructorDescriptionSortFlags
(int value) Creates a new SortFlags with givenvalue
.SortFlags
(QDir.SortFlag... args) Creates a new SortFlags where the flags inargs
are set. -
Method Summary
Modifier and TypeMethodDescriptionfinal QDir.SortFlags
clone()
Clones the flagsfinal QDir.SortFlags
Combines this flags with enum entry.final int
compareTo
(QDir.SortFlags other) final QDir.SortFlag[]
flags()
Returns an array of flag objects represented by this SortFlags.final QDir.SortFlags
Sets the flage
final QDir.SortFlags
setFlag
(QDir.SortFlag e, boolean on) Sets or clears the flagflag
-
Constructor Details
-
SortFlags
Creates a new SortFlags where the flags inargs
are set.- Parameters:
args
- enum entries
-
SortFlags
public SortFlags(int value) Creates a new SortFlags with givenvalue
.- Parameters:
value
-
-
-
Method Details
-
combined
Combines this flags with enum entry.- Overrides:
combined
in classQFlags<QDir.SortFlag>
- Parameters:
e
- enum entry- Returns:
- new SortFlags
-
setFlag
Sets the flage
- Overrides:
setFlag
in classQFlags<QDir.SortFlag>
- Parameters:
e
- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag
- Overrides:
setFlag
in classQFlags<QDir.SortFlag>
- Parameters:
e
- enum entryon
- set (true) or clear (false)- Returns:
- this
-
flags
Returns an array of flag objects represented by this SortFlags.- Overrides:
flags
in classQFlags<QDir.SortFlag>
- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clone
in classQFlags<QDir.SortFlag>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QDir.SortFlags>
-