- 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
ConstructorsConstructorDescriptionCreates a new SortFlags.SortFlags
(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
final void
setValue
(int value) Sets the value of this QFlags.final int
value()
Returns the value of this QFlags.
-
Constructor Details
-
SortFlags
public SortFlags()Creates a new SortFlags. -
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>
-
value
public final int value()Returns the value of this QFlags. -
setValue
public final void setValue(int value) Sets the value of this QFlags.- Parameters:
value
- new value
-