Enum Class FrameType
- All Implemented Interfaces:
Serializable, Comparable<FrameType>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic FrameTypefrom(long type) static booleanisControl(long frameType) static booleanisMessage(long frameType) static intmaxType()inttype()static FrameTypeReturns the enum constant of this class with the specified name.static FrameType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DATA
-
HEADERS
-
CANCEL_PUSH
-
SETTINGS
-
PUSH_PROMISE
-
GOAWAY
-
MAX_PUSH_ID
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
from
-
isControl
public static boolean isControl(long frameType) -
isMessage
public static boolean isMessage(long frameType) -
maxType
public static int maxType() -
type
public int type()
-