Skip navigation links


org.apache.myfaces.trinidad.util
Interface Enums.EnumParser<E extends Enum>

Enclosing class:
Enums

public static interface Enums.EnumParser<E extends Enum>

Single abstract method interface for parsing enum constant values from strings.


Method Summary
 E parse(String value)
          Returns the enum constant associated with the specified string.

 

Method Detail

parse

E parse(String value)
                     throws IllegalArgumentException
Returns the enum constant associated with the specified string.
Parameters:
value - the string value to parse
Throws:
IllegalArgumentException - if the value does not correspond to some enum constant.

Skip navigation links


Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.