public static enum ResourceType.Core extends java.lang.Enum<ResourceType.Core> implements ResourceType
ResourceType.Core
Enum Constant and Description |
---|
DISK
Disk resource.
|
HEAP
Heap resource.
|
OFFHEAP
OffHeap resource.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isPersistable()
Whether the resource supports persistence.
|
boolean |
requiresSerialization()
Whether the resource requires serialization support.
|
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.
|
public static final ResourceType.Core HEAP
public static final ResourceType.Core OFFHEAP
public static final ResourceType.Core DISK
public static ResourceType.Core[] values()
for (ResourceType.Core c : ResourceType.Core.values()) System.out.println(c);
public static ResourceType.Core valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isPersistable()
ResourceType
isPersistable
in interface ResourceType
true
if it supports persistencepublic boolean requiresSerialization()
ResourceType
requiresSerialization
in interface ResourceType
true
if serializers are requiredpublic java.lang.String toString()
toString
in class java.lang.Enum<ResourceType.Core>