org.apache.struts2.showcase.conversion
Enum OperationsEnum

java.lang.Object
  extended by java.lang.Enum<OperationsEnum>
      extended by org.apache.struts2.showcase.conversion.OperationsEnum
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<OperationsEnum>

public enum OperationsEnum
extends java.lang.Enum<OperationsEnum>

Version:
$Date: 2006-11-23 11:31:52 -0600 (Thu, 23 Nov 2006) $ $Id: OperationsEnum.java 478625 2006-11-23 17:31:52Z wsmoak $

Enum Constant Summary
ADD
           
DIVIDE
           
MINUS
           
MULTIPLY
           
REMAINDER
           
 
Method Summary
static OperationsEnum valueOf(java.lang.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're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

values

public static final OperationsEnum[] values()
Returns an array containing the constants of this enum type, in the order they're 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're declared

valueOf

public static OperationsEnum 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


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.