Package org.kie.api.builder

## Class ReleaseIdComparator

- java.lang.Object
- - org.kie.api.builder.ReleaseIdComparator

- All Implemented Interfaces:
    `java.util.Comparator<ReleaseId>`

      public class ReleaseIdComparator
      extends java.lang.Object
      implements java.util.Comparator<ReleaseId>

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `static class` | `ReleaseIdComparator.ComparableVersion` |
    `static class` | `ReleaseIdComparator.SortDirection` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `ReleaseIdComparator()` |
    `ReleaseIdComparator​(ReleaseIdComparator.SortDirection sortDirection)` |

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `int` | `compare​(ReleaseId o1, ReleaseId o2)` |
    `static ReleaseId` | `getEarliest​(java.util.List<ReleaseId> releaseIds)` |
    `static ReleaseId` | `getLatest​(java.util.List<ReleaseId> releaseIds)` |

    - ### 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

    - #### ReleaseIdComparator

          public ReleaseIdComparator()

    - #### ReleaseIdComparator

          public ReleaseIdComparator​(ReleaseIdComparator.SortDirection sortDirection)

  - ### Method Detail

    - #### compare

          public int compare​(ReleaseId o1,
                             ReleaseId o2)

      Specified by:
        `compare` in interface `java.util.Comparator<ReleaseId>`

    - #### getEarliest

          public static ReleaseId getEarliest​(java.util.List<ReleaseId> releaseIds)

    - #### getLatest

          public static ReleaseId getLatest​(java.util.List<ReleaseId> releaseIds)