- 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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ConversionMode(int value)
Creates a new ConversionMode with givenvalue
.ConversionMode(QHostAddress.ConversionModeFlag... args)
Creates a new ConversionMode where the flags inargs
are set. -
Method Summary
Modifier and Type Method Description QHostAddress.ConversionMode
clone()
Clones the flagsQHostAddress.ConversionMode
combined(QHostAddress.ConversionModeFlag e)
Combines this flags with enum entry.int
compareTo(QHostAddress.ConversionMode other)
QHostAddress.ConversionModeFlag[]
flags()
Returns an array of flag objects represented by this ConversionMode.QHostAddress.ConversionMode
setFlag(QHostAddress.ConversionModeFlag e)
Sets the flage
QHostAddress.ConversionMode
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>
-