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