org.yawlfoundation.yawl.monitor.sort
Enum CaseInstanceComparator

java.lang.Object
  extended by java.lang.Enum<CaseInstanceComparator>
      extended by org.yawlfoundation.yawl.monitor.sort.CaseInstanceComparator
All Implemented Interfaces:
Serializable, Comparable<CaseInstanceComparator>, Comparator<CaseInstance>

public enum CaseInstanceComparator
extends Enum<CaseInstanceComparator>
implements Comparator<CaseInstance>

Author: Michael Adams Creation Date: 10/12/2009 Based on code sourced from http://stackoverflow.com/


Enum Constant Summary
CaseID
           
SpecName
           
SpecVersion
           
StartTime
           
 
Method Summary
static Comparator<CaseInstance> descending(Comparator<CaseInstance> other)
           
static Comparator<CaseInstance> getComparator(CaseInstanceComparator... multipleOptions)
           
static Comparator<CaseInstance> getComparator(CaseOrder caseOrder)
           
static CaseInstanceComparator valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CaseInstanceComparator[] 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
equals, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
compare, equals
 

Enum Constant Detail

CaseID

public static final CaseInstanceComparator CaseID

SpecName

public static final CaseInstanceComparator SpecName

SpecVersion

public static final CaseInstanceComparator SpecVersion

StartTime

public static final CaseInstanceComparator StartTime
Method Detail

values

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

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

valueOf

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

descending

public static Comparator<CaseInstance> descending(Comparator<CaseInstance> other)

getComparator

public static Comparator<CaseInstance> getComparator(CaseInstanceComparator... multipleOptions)

getComparator

public static Comparator<CaseInstance> getComparator(CaseOrder caseOrder)


Copyright © 2004-2012 The YAWL Foundation.