@StringToEnumConverter.FactoryMethod(name="of") public enum InterfaceVersion extends Enum<InterfaceVersion>
Enum Constant and Description |
---|
VERSION_3_3
SMPP 3.3 the oldest used version (despite its limitations, it is still
widely used); supports GSM only.
|
VERSION_3_4
SMPP 3.4 adds optional Tag-Length-Value (TLV) parameters, support of
non-GSM SMS technologies and the transceiver support (single connections
that can send and receive messages).
|
VERSION_5_0
SMPP 5.0 is the latest version of SMPP; adds support for cell
broadcasting, smart flow control.
|
Modifier and Type | Method and Description |
---|---|
static InterfaceVersion |
fromValue(Byte value)
Get the
InterfaceVersion from the byte value. |
String |
getVersionString()
The version as string.
|
static InterfaceVersion |
of(String version)
Get the
InterfaceVersion from either the enum name (
VERSION_3_3 ,
VERSION_3_4 ,
VERSION_5_0 ) or from a string that represents
the version ("3.3", "3.4", "5.0"). |
byte |
value()
Get the version as byte value.
|
static InterfaceVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InterfaceVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InterfaceVersion VERSION_3_3
public static final InterfaceVersion VERSION_3_4
public static final InterfaceVersion VERSION_5_0
public static InterfaceVersion[] values()
for (InterfaceVersion c : InterfaceVersion.values()) System.out.println(c);
public static InterfaceVersion 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 byte value()
public String getVersionString()
public static InterfaceVersion fromValue(Byte value)
value
- the byte value that represents the versionIllegalArgumentException
- if the value doesn't match any known versionpublic static InterfaceVersion of(String version)
InterfaceVersion
from either the enum name (
VERSION_3_3
,
VERSION_3_4
,
VERSION_5_0
) or from a string that represents
the version ("3.3", "3.4", "5.0").
If version name is null
, null
is returnedversion
- the version as stringIllegalArgumentException
- if the version name doesn't match any known versionCopyright © 2021. All rights reserved.