oracle.sdp.presence.integration
Enum PhoneNumber.Type
java.lang.Object
java.lang.Enum<PhoneNumber.Type>
oracle.sdp.presence.integration.PhoneNumber.Type
- All Implemented Interfaces:
- Serializable, java.lang.Comparable<PhoneNumber.Type>
- Enclosing interface:
- PhoneNumber
public static enum PhoneNumber.Type
- extends java.lang.Enum<PhoneNumber.Type>
Specifications of the possible values of the type of
a PhoneNumber
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 |
CELL
public static final PhoneNumber.Type CELL
HOME
public static final PhoneNumber.Type HOME
WORK
public static final PhoneNumber.Type WORK
getDefaultType
public static PhoneNumber.Type getDefaultType()
getName
public java.lang.String getName()
getType
public static PhoneNumber.Type getType(java.lang.String name)
valueOf
public static PhoneNumber.Type 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
values
public static PhoneNumber.Type[] 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 (PhoneNumber.Type c : PhoneNumber.Type.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
Copyright © 2005, 2009 Oracle and/or its affiliates. All rights reserved.