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