Package org.jbpm.casemgmt.impl.model

## Class ProcessDefinitionComparator

- java.lang.Object
- - org.jbpm.casemgmt.impl.model.ProcessDefinitionComparator

- All Implemented Interfaces:
    `Comparator<ProcessDefinition>`

      public class ProcessDefinitionComparator
      extends Object
      implements Comparator<ProcessDefinition>

  Comparator used for sorting of ProcessDefinitions - currently by:
  - name - gives as name
  - id - gives as processId
  - deploymentId - gives as Project

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `ProcessDefinitionComparator​(String orderBy, Boolean ascending)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `int` | `compare​(ProcessDefinition o1, ProcessDefinition o2)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface java.util.Comparator

      `equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong`

- - ### Constructor Detail

    - #### ProcessDefinitionComparator

          public ProcessDefinitionComparator​(String orderBy,
                                             Boolean ascending)

  - ### Method Detail

    - #### compare

          public int compare​(ProcessDefinition o1,
                             ProcessDefinition o2)

      Specified by:
        `compare` in interface `Comparator<ProcessDefinition>`