com.notuvy.net.webcache
Enum CacheSortOrder

java.lang.Object
  extended by java.lang.Enum<CacheSortOrder>
      extended by com.notuvy.net.webcache.CacheSortOrder
All Implemented Interfaces:
Serializable, Comparable<CacheSortOrder>

public enum CacheSortOrder
extends Enum<CacheSortOrder>

Created by IntelliJ IDEA. User: murali Date: Sep 11, 2008 Time: 12:35:32 PM


Enum Constant Summary
CREATION
           
LAST_ACCESS
           
URL
           
 
Method Summary
abstract  Comparator<com.notuvy.net.webcache.CachedItem> comparator()
           
 Date extractTime(com.notuvy.net.webcache.CachedItem pItem)
           
 String getCode()
           
 String getName()
           
static CacheSortOrder lookup(String pCode)
           
static CacheSortOrder valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CacheSortOrder[] 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

CREATION

public static final CacheSortOrder CREATION

LAST_ACCESS

public static final CacheSortOrder LAST_ACCESS

URL

public static final CacheSortOrder URL
Method Detail

values

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

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

valueOf

public static CacheSortOrder 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
NullPointerException - if the argument is null

getName

public String getName()

getCode

public String getCode()

comparator

public abstract Comparator<com.notuvy.net.webcache.CachedItem> comparator()

extractTime

public Date extractTime(com.notuvy.net.webcache.CachedItem pItem)

lookup

public static CacheSortOrder lookup(String pCode)


Copyright © 2013. All Rights Reserved.