com.vodafone360.people.datatypes
Enum ContactSummary.OnlineStatus

java.lang.Object
  extended by java.lang.Enum<ContactSummary.OnlineStatus>
      extended by com.vodafone360.people.datatypes.ContactSummary.OnlineStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ContactSummary.OnlineStatus>
Enclosing class:
ContactSummary

public static enum ContactSummary.OnlineStatus
extends java.lang.Enum<ContactSummary.OnlineStatus>

Enumeration of online (Presence) status values.


Enum Constant Summary
IDLE
           
INVISIBLE
           
OFFLINE
           
ONLINE
           
 
Field Summary
private  java.lang.String mOnlineStatus
          The name of the field as it appears in the database.
 
Method Summary
static ContactSummary.OnlineStatus getValue(int index)
          Obtain OnlineStatus value for supplied index.
static ContactSummary.OnlineStatus getValue(java.lang.String value)
          Obtain OnlineStatus value for supplied String.
 java.lang.String toString()
          
static ContactSummary.OnlineStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ContactSummary.OnlineStatus[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

OFFLINE

public static final ContactSummary.OnlineStatus OFFLINE

IDLE

public static final ContactSummary.OnlineStatus IDLE

ONLINE

public static final ContactSummary.OnlineStatus ONLINE

INVISIBLE

public static final ContactSummary.OnlineStatus INVISIBLE
Field Detail

mOnlineStatus

private java.lang.String mOnlineStatus
The name of the field as it appears in the database.

Method Detail

values

public static ContactSummary.OnlineStatus[] 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 (ContactSummary.OnlineStatus c : ContactSummary.OnlineStatus.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ContactSummary.OnlineStatus 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

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Enum<ContactSummary.OnlineStatus>

getValue

public static ContactSummary.OnlineStatus getValue(java.lang.String value)
Obtain OnlineStatus value for supplied String.

Parameters:
String - identifying online status.
Returns:
OnlineStatus value for supplied String, null if OnlineStatus does not exist.

getValue

public static ContactSummary.OnlineStatus getValue(int index)
Obtain OnlineStatus value for supplied index.

Returns:
OnlineStatus value for supplied index, null if OnlineStatus does not exist.


JavaDoc