Class DefaultStateTransitionComparator

  • All Implemented Interfaces:
    java.util.Comparator<StateTransition>

    public class DefaultStateTransitionComparator
    extends java.lang.Object
    implements java.util.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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      intcompare​(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 Detail

      • STATE_TRANSITION_COMPARATOR

        public static final java.lang.String STATE_TRANSITION_COMPARATOR
        See Also:
        Constant Field Values
    • Constructor Detail

      • DefaultStateTransitionComparator

        public DefaultStateTransitionComparator()