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