org.yawlfoundation.yawl.monitor.sort
Enum ParamInstanceComparator

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

public enum ParamInstanceComparator
extends Enum<ParamInstanceComparator>
implements Comparator<ParameterInstance>

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


Enum Constant Summary
DataSchema
           
DataType
           
DefaultValue
           
InputPredicate
           
Name
           
OriginalValue
           
OutputPredicate
           
Usage
           
Value
           
 
Method Summary
static Comparator<ParameterInstance> descending(Comparator<ParameterInstance> other)
           
static Comparator<ParameterInstance> getComparator(ParamInstanceComparator... multipleOptions)
           
static Comparator<ParameterInstance> getComparator(ParamOrder paramOrder)
           
static ParamInstanceComparator valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ParamInstanceComparator[] 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

Name

public static final ParamInstanceComparator Name

DataType

public static final ParamInstanceComparator DataType

DataSchema

public static final ParamInstanceComparator DataSchema

Usage

public static final ParamInstanceComparator Usage

InputPredicate

public static final ParamInstanceComparator InputPredicate

OutputPredicate

public static final ParamInstanceComparator OutputPredicate

OriginalValue

public static final ParamInstanceComparator OriginalValue

DefaultValue

public static final ParamInstanceComparator DefaultValue

Value

public static final ParamInstanceComparator Value
Method Detail

values

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

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

valueOf

public static ParamInstanceComparator 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<ParameterInstance> descending(Comparator<ParameterInstance> other)

getComparator

public static Comparator<ParameterInstance> getComparator(ParamInstanceComparator... multipleOptions)

getComparator

public static Comparator<ParameterInstance> getComparator(ParamOrder paramOrder)


Copyright © 2004-2012 The YAWL Foundation.