com.belerweb.social.bean
Enum OnlineStatus
java.lang.Object
java.lang.Enum<OnlineStatus>
com.belerweb.social.bean.OnlineStatus
- All Implemented Interfaces:
- Serializable, Comparable<OnlineStatus>
public enum OnlineStatus
- extends Enum<OnlineStatus>
ONLINE
public static final OnlineStatus ONLINE
OFFLINE
public static final OnlineStatus OFFLINE
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.