public static enum Envelope.Header.Flag extends java.lang.Enum<Envelope.Header.Flag>
Enum Constant and Description |
---|
COMPRESSED |
CUSTOM_PAYLOAD |
TRACING |
USE_BETA |
WARNING |
Modifier and Type | Method and Description |
---|---|
static java.util.EnumSet<Envelope.Header.Flag> |
deserialize(int flags) |
static int |
serialize(java.util.EnumSet<Envelope.Header.Flag> flags) |
static Envelope.Header.Flag |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Envelope.Header.Flag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Envelope.Header.Flag COMPRESSED
public static final Envelope.Header.Flag TRACING
public static final Envelope.Header.Flag CUSTOM_PAYLOAD
public static final Envelope.Header.Flag WARNING
public static final Envelope.Header.Flag USE_BETA
public static Envelope.Header.Flag[] values()
for (Envelope.Header.Flag c : Envelope.Header.Flag.values()) System.out.println(c);
public static Envelope.Header.Flag valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static java.util.EnumSet<Envelope.Header.Flag> deserialize(int flags)
public static int serialize(java.util.EnumSet<Envelope.Header.Flag> flags)
Copyright © 2009- The Apache Software Foundation