net.sf.jasperreports.engine.type

## Class EnumUtil

- java.lang.Object
- - net.sf.jasperreports.engine.type.EnumUtil

-     public final class EnumUtil
      extends java.lang.Object

  Version:
    $Id: EnumUtil.java 5878 2013-01-07 20:23:13Z teodord $
  Author:
    Teodor Danciu (teodord@users.sourceforge.net)

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static JREnum` | `getByEnumConstantName(JREnum[] values, java.lang.String name)`
    `static JREnum` | `getByName(JREnum[] values, java.lang.String name)`
    `static JREnum` | `getByValue(JREnum[] values, java.lang.Byte value)`
    `static JREnum` | `getByValue(JREnum[] values, java.lang.Integer value)`
    `static <T extends NamedEnum> T` | `getEnumByName(T[] values, java.lang.String name)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getByValue

          public static JREnum getByValue(JREnum[] values,
                          java.lang.Integer value)

    - #### getByValue

          public static JREnum getByValue(JREnum[] values,
                          java.lang.Byte value)

    - #### getByName

          public static JREnum getByName(JREnum[] values,
                         java.lang.String name)

    - #### getEnumByName

          public static <T extends NamedEnum> T getEnumByName(T[] values,
                                              java.lang.String name)

    - #### getByEnumConstantName

          public static JREnum getByEnumConstantName(JREnum[] values,
                                     java.lang.String name)

© 2001-2010 Jaspersoft Corporation www.jaspersoft.com