org.springframework.roo.classpath.operations
Class EnumType

java.lang.Object
  extended by org.springframework.roo.classpath.operations.EnumType
All Implemented Interfaces:
Comparable<EnumType>

public class EnumType
extends Object
implements Comparable<EnumType>

Provides enum types for JPA use.

Since:
1.0
Author:
Ben Alex

Field Summary
static EnumType ORDINAL
           
static EnumType STRING
           
 
Constructor Summary
EnumType(String key)
           
 
Method Summary
 int compareTo(EnumType o)
           
 boolean equals(Object obj)
           
 String getKey()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ORDINAL

public static final EnumType ORDINAL

STRING

public static final EnumType STRING
Constructor Detail

EnumType

public EnumType(String key)
Method Detail

getKey

public String getKey()

hashCode

public final int hashCode()
Overrides:
hashCode in class Object

equals

public final boolean equals(Object obj)
Overrides:
equals in class Object

compareTo

public final int compareTo(EnumType o)
Specified by:
compareTo in interface Comparable<EnumType>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2010 VMware, Inc. All Rights Reserved.