MPXJ: Microsoft Project Exchange

net.sf.mpxj.utility
Class EnumUtility

java.lang.Object
  extended by net.sf.mpxj.utility.EnumUtility

public final class EnumUtility
extends java.lang.Object

Utility method for working with enumerations.


Constructor Summary
EnumUtility()
           
 
Method Summary
static
<E extends java.lang.Enum<E>>
E[]
createTypeArray(java.lang.Class<E> c)
          Creates a lookup array based on the "value" associated with an MpxjEnum.
static
<E extends java.lang.Enum<E>>
E[]
createTypeArray(java.lang.Class<E> c, int arraySizeOffset)
          Creates a lookup array based on the "value" associated with an MpxjEnum.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumUtility

public EnumUtility()
Method Detail

createTypeArray

public static final <E extends java.lang.Enum<E>> E[] createTypeArray(java.lang.Class<E> c)
Creates a lookup array based on the "value" associated with an MpxjEnum.

Type Parameters:
E - target enumeration
Parameters:
c - enumeration class
Returns:
lookup array

createTypeArray

public static final <E extends java.lang.Enum<E>> E[] createTypeArray(java.lang.Class<E> c,
                                                                      int arraySizeOffset)
Creates a lookup array based on the "value" associated with an MpxjEnum.

Type Parameters:
E - target enumeration
Parameters:
c - enumeration class
arraySizeOffset - offset to apply to the array size
Returns:
lookup array


Copyright © 2000-2014 Packwood Software. All Rights Reserved.