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