Package org.kie.api.builder

# Class ReleaseIdComparator

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

All Implemented Interfaces:
  `Comparator<ReleaseId>`

public class ReleaseIdComparator extends Object implements Comparator<ReleaseId>

- ## Nested Class Summary

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

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ReleaseIdComparator()`
  `ReleaseIdComparator(ReleaseIdComparator.SortDirection sortDirection)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `compare(ReleaseId o1, ReleaseId o2)`
  `static ReleaseId`
  `getEarliest(List<ReleaseId> releaseIds)`
  `static ReleaseId`
  `getLatest(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 Details

  - ### ReleaseIdComparator

    public ReleaseIdComparator()

  - ### ReleaseIdComparator

    public ReleaseIdComparator(ReleaseIdComparator.SortDirection sortDirection)

- ## Method Details

  - ### compare

    public int compare(ReleaseId o1, ReleaseId o2)
    Specified by:
      `compare` in interface `Comparator<ReleaseId>`

  - ### getEarliest

    public static ReleaseId getEarliest(List<ReleaseId> releaseIds)

  - ### getLatest

    public static ReleaseId getLatest(List<ReleaseId> releaseIds)