Enum CometTemplate.Visibility
- java.lang.Object
-
- java.lang.Enum<CometTemplate.Visibility>
-
- com.priint.pubserver.comet.entity.template.CometTemplate.Visibility
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CometTemplate.Visibility>
- Enclosing class:
- CometTemplate
public static enum CometTemplate.Visibility extends java.lang.Enum<CometTemplate.Visibility>
The Enum Visibility.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALWAYSThe always.DESKTOPThe desktop.NEVERThe never.PREVIEWPANELThe previewpanel.PRODUCTPOOLThe productpool.UNDEFINEDThe undefined.WHITEBOARDThe whiteboard.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CometTemplate.VisibilityfindById(int id)Find by id.intgetId()Gets the id.static CometTemplate.VisibilityvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CometTemplate.Visibility[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNDEFINED
public static final CometTemplate.Visibility UNDEFINED
The undefined.
-
ALWAYS
public static final CometTemplate.Visibility ALWAYS
The always.
-
NEVER
public static final CometTemplate.Visibility NEVER
The never.
-
DESKTOP
public static final CometTemplate.Visibility DESKTOP
The desktop.
-
WHITEBOARD
public static final CometTemplate.Visibility WHITEBOARD
The whiteboard.
-
PREVIEWPANEL
public static final CometTemplate.Visibility PREVIEWPANEL
The previewpanel.
-
PRODUCTPOOL
public static final CometTemplate.Visibility PRODUCTPOOL
The productpool.
-
-
Method Detail
-
values
public static CometTemplate.Visibility[] 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 (CometTemplate.Visibility c : CometTemplate.Visibility.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CometTemplate.Visibility 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 namejava.lang.NullPointerException- if the argument is null
-
findById
public static CometTemplate.Visibility findById(int id)
Find by id.- Parameters:
id- the id- Returns:
- the visibility
-
getId
public int getId()
Gets the id.- Returns:
- the id
-
-