- 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
ConstructorsConstructorDescriptionCreates a new EncodingOptions.EncodingOptions(int value) Creates a new EncodingOptions with givenvalue.EncodingOptions(QCborValue.EncodingOption ... args) Creates a new EncodingOptions where the flags inargsare set. -
Method Summary
Modifier and TypeMethodDescriptionclone()Clones the flagsCombines this flags with enum entry.final intfinal QCborValue.EncodingOption []flags()Returns an array of flag objects represented by this EncodingOptions.Sets the flagesetFlag(QCborValue.EncodingOption 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
-
EncodingOptions
public EncodingOptions()Creates a new EncodingOptions. -
EncodingOptions
Creates a new EncodingOptions where the flags inargsare 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:
combinedin classQFlags<QCborValue.EncodingOption>- Parameters:
e- enum entry- Returns:
- new EncodingOptions
-
setFlag
Sets the flage- Overrides:
setFlagin classQFlags<QCborValue.EncodingOption>- Parameters:
e- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag- Overrides:
setFlagin 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:
flagsin classQFlags<QCborValue.EncodingOption>- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clonein classQFlags<QCborValue.EncodingOption>
-
compareTo
- Specified by:
compareToin interfaceComparable<QCborValue.EncodingOptions>
-
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
-