Interface StepIndexer

  • All Superinterfaces:
    java.util.Comparator<Step>
    All Known Implementing Classes:
    Pipeline

    public interface StepIndexer
    extends java.util.Comparator<Step>
    An interface for getting the indices of steps.
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default int compare​(Step o1, Step o2)
      Compares two steps based on their indexes.
      int indexOf​(Step step)
      Gets the index of the given step.
      • Methods inherited from interface java.util.Comparator

        equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Method Detail

      • indexOf

        int indexOf​(Step step)
        Gets the index of the given step.
        Parameters:
        step - the step to get the index of
        Returns:
        the index of the given step, or -1 if this object does not contain that step
      • compare

        default int compare​(Step o1,
                            Step o2)
        Compares two steps based on their indexes. This is not consistent with equals().
        Specified by:
        compare in interface java.util.Comparator<Step>
        Parameters:
        o1 - the first step to compare
        o2 - the second step to compare