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