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

  - ### Method Summary

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

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

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