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