public enum ValueType extends Enum<ValueType>
Enum Constant and Description |
---|
BOOLEAN |
BYTES |
DOUBLE |
FIXED32 |
FIXED64 |
FLOAT |
INT |
LONG |
NULL |
STRING |
Modifier and Type | Method and Description |
---|---|
static ValueType |
forName(String name)
Return a type given its name.
|
String |
getName()
Return the name of this type.
|
static ValueType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ValueType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ValueType NULL
public static final ValueType BOOLEAN
public static final ValueType INT
public static final ValueType LONG
public static final ValueType FIXED32
public static final ValueType FIXED64
public static final ValueType FLOAT
public static final ValueType DOUBLE
public static final ValueType STRING
public static final ValueType BYTES
public static ValueType[] values()
for (ValueType c : ValueType.values()) System.out.println(c);
public static ValueType 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 String getName()
Copyright © 2009–2019 The Apache Software Foundation. All rights reserved.