- 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
ConstructorsConstructorDescriptionCreates a new PolicyFlags.PolicyFlags(int value) Creates a new PolicyFlags with givenvalue.PolicyFlags(QHstsPolicy.PolicyFlag ... args) Creates a new PolicyFlags where the flags inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionfinal QHstsPolicy.PolicyFlagsclone()Clones the flagsfinal QHstsPolicy.PolicyFlagsCombines this flags with enum entry.final intcompareTo(QHstsPolicy.PolicyFlags other) final QHstsPolicy.PolicyFlag []flags()Returns an array of flag objects represented by this PolicyFlags.final QHstsPolicy.PolicyFlagsSets the flagefinal QHstsPolicy.PolicyFlagssetFlag(QHstsPolicy.PolicyFlag e, boolean on) Sets or clears the flagflagfinal voidsetValue(int value) Sets the value of this QFlags.final intvalue()Returns the value of this QFlags.
-
Constructor Details
-
PolicyFlags
public PolicyFlags()Creates a new PolicyFlags. -
PolicyFlags
Creates a new PolicyFlags where the flags inargsare 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:
combinedin classQFlags<QHstsPolicy.PolicyFlag>- Parameters:
e- enum entry- Returns:
- new PolicyFlags
-
setFlag
Sets the flage- Overrides:
setFlagin classQFlags<QHstsPolicy.PolicyFlag>- Parameters:
e- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag- Overrides:
setFlagin 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:
flagsin classQFlags<QHstsPolicy.PolicyFlag>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<QHstsPolicy.PolicyFlag>
-
compareTo
- Specified by:
compareToin interfaceComparable<QHstsPolicy.PolicyFlags>
-
value
public final int value()Returns the value of this QFlags. -
setValue
public final void setValue(int value) Sets the value of this QFlags.- Parameters:
value- new value
-