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 and Description
    `CaseDefinitionComparator(String orderBy, Boolean ascending)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and 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

      `comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, 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>`

Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.