public enum EngineType extends Enum<EngineType>
Modifier and Type | Field and Description |
---|---|
static org.apache.avro.Schema |
SCHEMA$ |
Modifier and Type | Method and Description |
---|---|
static org.apache.avro.Schema |
getClassSchema() |
static EngineType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EngineType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EngineType DIESEL
public static final EngineType PETROL
public static final EngineType ELECTRIC
public static EngineType[] values()
for (EngineType c : EngineType.values()) System.out.println(c);
public static EngineType 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 org.apache.avro.Schema getClassSchema()
Copyright © 2019 The Apache Software Foundation. All rights reserved.