public enum LayerEnum extends Enum<LayerEnum>
| Enum Constant and Description |
|---|
LAYER2
Represents layer2.
|
LAYER3
Represents layer3.
|
| Modifier and Type | Method and Description |
|---|---|
int |
layerEnum()
Returns the attribute layerEnum.
|
static LayerEnum |
of(int value)
Returns the object of layerEnum for.
|
static LayerEnum |
of(String value)
Returns the object of layerEnum for.
|
String |
toString() |
static LayerEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LayerEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LayerEnum LAYER2
public static final LayerEnum LAYER3
public static LayerEnum[] values()
for (LayerEnum c : LayerEnum.values()) System.out.println(c);
public static LayerEnum 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 LayerEnum of(int value)
value - value of layerEnum forpublic static LayerEnum of(String value)
value - value of layerEnum forpublic int layerEnum()
Copyright © 2018. All rights reserved.