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