Class DefaultStateTransitionComparator
java.lang.Object
org.springframework.batch.core.job.flow.support.DefaultStateTransitionComparator
- All Implemented Interfaces:
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:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
STATE_TRANSITION_COMPARATOR
- See Also:
-
-
Constructor Details
-
DefaultStateTransitionComparator
public DefaultStateTransitionComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<StateTransition>
-