org.apache.struts2.showcase.conversion
Enum OperationsEnum
java.lang.Object
java.lang.Enum<OperationsEnum>
org.apache.struts2.showcase.conversion.OperationsEnum
- All Implemented Interfaces:
- Serializable, Comparable<OperationsEnum>
public enum OperationsEnum
- extends Enum<OperationsEnum>
- Version:
- $Date: 2006-11-23 18:31:52 +0100 (Thu, 23 Nov 2006) $ $Id: OperationsEnum.java 478625 2006-11-23 17:31:52Z wsmoak $
|
Method Summary |
static OperationsEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static OperationsEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
ADD
public static final OperationsEnum ADD
MINUS
public static final OperationsEnum MINUS
DIVIDE
public static final OperationsEnum DIVIDE
MULTIPLY
public static final OperationsEnum MULTIPLY
REMAINDER
public static final OperationsEnum REMAINDER
values
public static OperationsEnum[] 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 (OperationsEnum c : OperationsEnum.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static OperationsEnum 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
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.