Forge - Addon Container 2.0.0.Alpha3

org.jboss.forge.container.util
Class Enums

java.lang.Object
  extended by org.jboss.forge.container.util.Enums

public class Enums
extends Object

Utility methods for enum types.

Author:
Lincoln Baxter, III

Constructor Summary
Enums()
           
 
Method Summary
static
<T extends Enum<T>>
List<T>
getValues(Class<T> type)
           
static boolean hasValue(Class<?> type, Object value)
           
static Enum<?> valueOf(Class<?> type, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Enums

public Enums()
Method Detail

valueOf

public static Enum<?> valueOf(Class<?> type,
                              Object value)

hasValue

public static boolean hasValue(Class<?> type,
                               Object value)

getValues

public static <T extends Enum<T>> List<T> getValues(Class<T> type)

Forge - Addon Container 2.0.0.Alpha3

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.