com.belerweb.social.bean
Enum OnlineStatus

java.lang.Object
  extended by java.lang.Enum<OnlineStatus>
      extended by com.belerweb.social.bean.OnlineStatus
All Implemented Interfaces:
Serializable, Comparable<OnlineStatus>

public enum OnlineStatus
extends Enum<OnlineStatus>


Enum Constant Summary
OFFLINE
           
ONLINE
           
 
Method Summary
 String enText()
           
 boolean online()
           
static OnlineStatus parse(Integer val)
           
static OnlineStatus parse(String val)
           
 int status()
           
 String text()
           
 String toString()
           
static OnlineStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static 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

ONLINE

public static final OnlineStatus ONLINE

OFFLINE

public static final OnlineStatus OFFLINE
Method Detail

values

public static 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 (OnlineStatus c : 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 OnlineStatus valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

online

public boolean online()

status

public int status()

text

public String text()

enText

public String enText()

toString

public String toString()
Overrides:
toString in class Enum<OnlineStatus>

parse

public static OnlineStatus parse(Integer val)

parse

public static OnlineStatus parse(String val)


Copyright © 2014. All Rights Reserved.