fr.paris.lutece.plugins.crm.util
Enum OperatorEnum

java.lang.Object
  extended by java.lang.Enum<OperatorEnum>
      extended by fr.paris.lutece.plugins.crm.util.OperatorEnum
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<OperatorEnum>

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

OperatorEnum


Enum Constant Summary
EQUAL
           
GREATER
           
GREATER_OR_EQUAL
           
LOWER
           
LOWER_OR_EQUAL
           
 
Method Summary
 int getId()
          Get the id of the operator
 java.lang.String toString()
          Get the String value of the operator
static OperatorEnum valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static OperatorEnum[] 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

EQUAL

public static final OperatorEnum EQUAL

GREATER

public static final OperatorEnum GREATER

LOWER

public static final OperatorEnum LOWER

GREATER_OR_EQUAL

public static final OperatorEnum GREATER_OR_EQUAL

LOWER_OR_EQUAL

public static final OperatorEnum LOWER_OR_EQUAL
Method Detail

values

public static OperatorEnum[] 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 (OperatorEnum c : OperatorEnum.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static OperatorEnum 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
java.lang.NullPointerException - if the argument is null

getId

public int getId()
Get the id of the operator

Returns:
the id of the operator

toString

public java.lang.String toString()
Get the String value of the operator

Overrides:
toString in class java.lang.Enum<OperatorEnum>
Returns:
the String value of the operator


Copyright © 2011 Mairie de Paris. All Rights Reserved.