public enum TrafficType extends Enum<TrafficType>
Java class for TrafficType.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="TrafficType"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="PACKET"/> <enumeration value="SMS"/> <enumeration value="VOICE"/> <enumeration value="REGNOT"/> <enumeration value="ALL"/> <enumeration value="ANY"/> </restriction> </simpleType>
Modifier and Type | Method and Description |
---|---|
static TrafficType |
fromValue(String v) |
String |
value() |
static TrafficType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TrafficType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TrafficType PACKET
public static final TrafficType SMS
public static final TrafficType VOICE
public static final TrafficType REGNOT
public static final TrafficType ALL
public static final TrafficType ANY
public static TrafficType[] values()
for (TrafficType c : TrafficType.values()) System.out.println(c);
public static TrafficType 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 value()
public static TrafficType fromValue(String v)
Copyright © 2022. All rights reserved.