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