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