org.smslib.smpp
Enum Address.TypeOfNumber
java.lang.Object
java.lang.Enum<Address.TypeOfNumber>
org.smslib.smpp.Address.TypeOfNumber
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Address.TypeOfNumber>
- Enclosing class:
- Address
public static enum Address.TypeOfNumber
- extends java.lang.Enum<Address.TypeOfNumber>
Method Summary |
byte |
value()
Get the byte value of the enum constant. |
static Address.TypeOfNumber |
valueOf(byte value)
Get the TypeOfNumber based on the specified byte value
representation. |
static Address.TypeOfNumber |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Address.TypeOfNumber[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
UNKNOWN
public static final Address.TypeOfNumber UNKNOWN
INTERNATIONAL
public static final Address.TypeOfNumber INTERNATIONAL
NATIONAL
public static final Address.TypeOfNumber NATIONAL
NETWORK_SPECIFIC
public static final Address.TypeOfNumber NETWORK_SPECIFIC
SUBSCRIBER_NUMBER
public static final Address.TypeOfNumber SUBSCRIBER_NUMBER
ALPHANUMERIC
public static final Address.TypeOfNumber ALPHANUMERIC
ABBREVIATED
public static final Address.TypeOfNumber ABBREVIATED
values
public static Address.TypeOfNumber[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Address.TypeOfNumber c : Address.TypeOfNumber.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Address.TypeOfNumber valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
value
public byte value()
- Get the byte value of the enum constant.
- Returns:
- the byte value.
valueOf
public static Address.TypeOfNumber valueOf(byte value)
- Get the TypeOfNumber based on the specified byte value
representation.
- Parameters:
value
- is the byte value representation.
- Returns:
- is the enum const related to the specified byte value.
- Throws:
java.lang.IllegalArgumentException
- if there is no enum const associated
with specified byte value.
(c) 2002-2011, http://smslib.org