public enum WireType extends Enum<WireType>
| Enum Constant and Description |
|---|
END_GROUP |
FIXED32 |
FIXED64 |
LENGTH_DELIMITED |
START_GROUP |
VARINT |
| Modifier and Type | Field and Description |
|---|---|
static int |
FIXED_32_SIZE |
static int |
FIXED_64_SIZE |
static int |
TAG_TYPE_BITS |
| Modifier and Type | Method and Description |
|---|---|
int |
value() |
static WireType |
valueOf(int value) |
static WireType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WireType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WireType VARINT
public static final WireType FIXED64
public static final WireType LENGTH_DELIMITED
public static final WireType START_GROUP
public static final WireType END_GROUP
public static final WireType FIXED32
public static final int FIXED_32_SIZE
public static final int FIXED_64_SIZE
public static final int TAG_TYPE_BITS
public static WireType[] values()
for (WireType c : WireType.values()) System.out.println(c);
public static WireType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic static WireType valueOf(int value)
public int value()
Copyright © 2013 Square, Inc.. All Rights Reserved.