org.yawlfoundation.yawl.monitor.sort
Enum ItemInstanceComparator

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

public enum ItemInstanceComparator
extends Enum<ItemInstanceComparator>
implements Comparator<WorkItemInstance>

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


Enum Constant Summary
CompletionTime
           
EnabledTime
           
ItemID
           
Service
           
StartTime
           
Status
           
TaskID
           
TimerExpiry
           
TimerStatus
           
 
Method Summary
static Comparator<WorkItemInstance> descending(Comparator<WorkItemInstance> other)
           
static Comparator<WorkItemInstance> getComparator(ItemInstanceComparator... multipleOptions)
           
static Comparator<WorkItemInstance> getComparator(ItemOrder itemOrder)
           
static ItemInstanceComparator valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ItemInstanceComparator[] 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
 
Methods inherited from interface java.util.Comparator
compare, equals
 

Enum Constant Detail

ItemID

public static final ItemInstanceComparator ItemID

TaskID

public static final ItemInstanceComparator TaskID

Status

public static final ItemInstanceComparator Status

Service

public static final ItemInstanceComparator Service

EnabledTime

public static final ItemInstanceComparator EnabledTime

StartTime

public static final ItemInstanceComparator StartTime

CompletionTime

public static final ItemInstanceComparator CompletionTime

TimerStatus

public static final ItemInstanceComparator TimerStatus

TimerExpiry

public static final ItemInstanceComparator TimerExpiry
Method Detail

values

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

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

valueOf

public static ItemInstanceComparator 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<WorkItemInstance> descending(Comparator<WorkItemInstance> other)

getComparator

public static Comparator<WorkItemInstance> getComparator(ItemInstanceComparator... multipleOptions)

getComparator

public static Comparator<WorkItemInstance> getComparator(ItemOrder itemOrder)


Copyright © 2004-2012 The YAWL Foundation.