com.triangularpixels.rebirth.resources
Enum ResourceHandle.State

java.lang.Object
  extended by java.lang.Enum<ResourceHandle.State>
      extended by com.triangularpixels.rebirth.resources.ResourceHandle.State
All Implemented Interfaces:
Serializable, Comparable<ResourceHandle.State>
Enclosing class:
ResourceHandle<T extends Resource>

public static enum ResourceHandle.State
extends Enum<ResourceHandle.State>


Enum Constant Summary
CREATED
          The resource has finished it's mainCreate() method and is fully created
DESTROYED
          The resource has been destroyed and should no longer be used
PARSED
          The resource has been instantiated and the corresponding xml parsed
PARTIALLY_CREATED
          The resource has finished it's create() method and is waiting to be fully created
 
Method Summary
static ResourceHandle.State valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ResourceHandle.State[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PARSED

public static final ResourceHandle.State PARSED
The resource has been instantiated and the corresponding xml parsed


PARTIALLY_CREATED

public static final ResourceHandle.State PARTIALLY_CREATED
The resource has finished it's create() method and is waiting to be fully created


CREATED

public static final ResourceHandle.State CREATED
The resource has finished it's mainCreate() method and is fully created


DESTROYED

public static final ResourceHandle.State DESTROYED
The resource has been destroyed and should no longer be used

Method Detail

values

public static final ResourceHandle.State[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(ResourceHandle.State c : ResourceHandle.State.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static ResourceHandle.State valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name


Copyright © 2009 TriangularPixels.com. All Rights Reserved.