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