to.etc.domui.caches.images
Enum InstanceCacheState

java.lang.Object
  extended by java.lang.Enum<InstanceCacheState>
      extended by to.etc.domui.caches.images.InstanceCacheState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<InstanceCacheState>

public enum InstanceCacheState
extends java.lang.Enum<InstanceCacheState>


Enum Constant Summary
DISCARD
          The instance is INVALID, and it's size and LRU chain are invalid
LINKED
          The instance is VALID, and has been properly linked and it's size is registered in the cache.
NONE
          The instance is not properly linked yet.
 
Method Summary
static InstanceCacheState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static InstanceCacheState[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final InstanceCacheState NONE
The instance is not properly linked yet. It will exist in the access map but it's size and LRU links are not used


LINKED

public static final InstanceCacheState LINKED
The instance is VALID, and has been properly linked and it's size is registered in the cache.


DISCARD

public static final InstanceCacheState DISCARD
The instance is INVALID, and it's size and LRU chain are invalid

Method Detail

values

public static InstanceCacheState[] 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 (InstanceCacheState c : InstanceCacheState.values())
    System.out.println(c);

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

valueOf

public static InstanceCacheState 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