- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<QNearFieldShareManager.ShareModes>
- Enclosing class:
- QNearFieldShareManager
public static final class QNearFieldShareManager.ShareModes extends QFlags<QNearFieldShareManager.ShareMode> implements Comparable<QNearFieldShareManager.ShareModes>
QFlags type for enum
QNearFieldShareManager.ShareMode
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ShareModes(int value)
Creates a new ShareModes with givenvalue
.ShareModes(QNearFieldShareManager.ShareMode... args)
Creates a new ShareModes where the flags inargs
are set. -
Method Summary
Modifier and Type Method Description QNearFieldShareManager.ShareModes
clone()
Clones the flagsQNearFieldShareManager.ShareModes
combined(QNearFieldShareManager.ShareMode e)
Combines this flags with enum entry.int
compareTo(QNearFieldShareManager.ShareModes other)
QNearFieldShareManager.ShareMode[]
flags()
Returns an array of flag objects represented by this ShareModes.QNearFieldShareManager.ShareModes
setFlag(QNearFieldShareManager.ShareMode e)
Sets the flage
QNearFieldShareManager.ShareModes
setFlag(QNearFieldShareManager.ShareMode e, boolean on)
Sets or clears the flagflag
-
Constructor Details
-
ShareModes
Creates a new ShareModes where the flags inargs
are set.- Parameters:
args
- enum entries
-
ShareModes
public ShareModes(int value)Creates a new ShareModes with givenvalue
.- Parameters:
value
-
-
-
Method Details
-
combined
Combines this flags with enum entry.- Overrides:
combined
in classQFlags<QNearFieldShareManager.ShareMode>
- Parameters:
e
- enum entry- Returns:
- new ShareModes
-
setFlag
Sets the flage
- Overrides:
setFlag
in classQFlags<QNearFieldShareManager.ShareMode>
- Parameters:
e
- enum entry- Returns:
- this
-
setFlag
public final QNearFieldShareManager.ShareModes setFlag(QNearFieldShareManager.ShareMode e, boolean on)Sets or clears the flagflag
- Overrides:
setFlag
in classQFlags<QNearFieldShareManager.ShareMode>
- Parameters:
e
- enum entryon
- set (true) or clear (false)- Returns:
- this
-
flags
Returns an array of flag objects represented by this ShareModes.- Overrides:
flags
in classQFlags<QNearFieldShareManager.ShareMode>
- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clone
in classQFlags<QNearFieldShareManager.ShareMode>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QNearFieldShareManager.ShareModes>
-