- 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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description EncodingOptions(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 Type Method Description QCborValue.EncodingOptions
clone()
Clones the flagsQCborValue.EncodingOptions
combined(QCborValue.EncodingOption e)
Combines this flags with enum entry.int
compareTo(QCborValue.EncodingOptions other)
QCborValue.EncodingOption[]
flags()
Returns an array of flag objects represented by this EncodingOptions.QCborValue.EncodingOptions
setFlag(QCborValue.EncodingOption e)
Sets the flage
QCborValue.EncodingOptions
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>
-