- 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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description 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 Type Method Description QDirIterator.IteratorFlags
clone()
Clones the flagsQDirIterator.IteratorFlags
combined(QDirIterator.IteratorFlag e)
Combines this flags with enum entry.int
compareTo(QDirIterator.IteratorFlags other)
QDirIterator.IteratorFlag[]
flags()
Returns an array of flag objects represented by this IteratorFlags.QDirIterator.IteratorFlags
setFlag(QDirIterator.IteratorFlag e)
Sets the flage
QDirIterator.IteratorFlags
setFlag(QDirIterator.IteratorFlag e, boolean on)
Sets or clears the flagflag
-
Constructor Details
-
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>
-