org.ehcache.config
Enum ResourceType.Core

java.lang.Object
  extended by java.lang.Enum<ResourceType.Core>
      extended by org.ehcache.config.ResourceType.Core
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ResourceType.Core>, ResourceType
Enclosing interface:
ResourceType

public static enum ResourceType.Core
extends java.lang.Enum<ResourceType.Core>
implements ResourceType

An enumeration of resource types handled by core ehcache.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ehcache.config.ResourceType
ResourceType.Core
 
Enum Constant Summary
DISK
          Disk resource.
HEAP
          Heap resource.
OFFHEAP
          OffHeap resource.
 
Method Summary
 boolean isPersistable()
          Whether the resource supports persistence
 java.lang.String toString()
           
static ResourceType.Core valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ResourceType.Core[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

HEAP

public static final ResourceType.Core HEAP
Heap resource.


OFFHEAP

public static final ResourceType.Core OFFHEAP
OffHeap resource.


DISK

public static final ResourceType.Core DISK
Disk resource.

Method Detail

values

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

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

valueOf

public static ResourceType.Core valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

isPersistable

public boolean isPersistable()
Description copied from interface: ResourceType
Whether the resource supports persistence

Specified by:
isPersistable in interface ResourceType
Returns:
true if it supports persistence

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<ResourceType.Core>