Package org.jbpm.casemgmt.impl.model

## Class CaseDefinitionComparator

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

- All Implemented Interfaces:
    `Comparator<CaseDefinitionImpl>`

      public class CaseDefinitionComparator
      extends Object
      implements Comparator<CaseDefinitionImpl>

  Comparator used for sorting of CaseDefinitions - currently by:
  - name - gives as CaseName
  - id - gives as CaseId
  - deploymentId - gives as Project

- - ### Constructor Summary

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

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `int` | `compare​(CaseDefinitionImpl o1, CaseDefinitionImpl 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

    - #### CaseDefinitionComparator

          public CaseDefinitionComparator​(String orderBy,
                                          Boolean ascending)

  - ### Method Detail

    - #### compare

          public int compare​(CaseDefinitionImpl o1,
                             CaseDefinitionImpl o2)

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