- 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:
-
Constructor Summary
ConstructorDescriptionPolicyFlags
(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 TypeMethodDescriptionfinal QHstsPolicy.PolicyFlags
clone()
Clones the flagsfinal QHstsPolicy.PolicyFlags
Combines this flags with enum entry.final int
compareTo
(QHstsPolicy.PolicyFlags other) final QHstsPolicy.PolicyFlag []
flags()
Returns an array of flag objects represented by this PolicyFlags.final QHstsPolicy.PolicyFlags
Sets the flage
final 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>
-