Package org.springframework.batch.core.job.flow.support

# Class DefaultStateTransitionComparator

java.lang.Object
org.springframework.batch.core.job.flow.support.DefaultStateTransitionComparator

All Implemented Interfaces:
  `Comparator<StateTransition>`

public class DefaultStateTransitionComparator extends Object implements Comparator<StateTransition>
Sorts by decreasing specificity of pattern, based on just counting wildcards (with * taking precedence over ?). If wildcard counts are equal then falls back to alphabetic comparison. Hence * > foo* > ??? > fo? > foo.

Since:
  3.0
Author:
  Michael Minella
See Also:
  - `Comparator`

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final String`
  `STATE_TRANSITION_COMPARATOR`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DefaultStateTransitionComparator()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `compare(StateTransition arg0, StateTransition arg1)`

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

- ## Field Details

  - ### STATE_TRANSITION_COMPARATOR

    public static final String STATE_TRANSITION_COMPARATOR
    See Also:
      - Constant Field Values

- ## Constructor Details

  - ### DefaultStateTransitionComparator

    public DefaultStateTransitionComparator()

- ## Method Details

  - ### compare

    public int compare(StateTransition arg0, StateTransition arg1)
    Specified by:
      `compare` in interface `Comparator<StateTransition>`