Class ParameterModelComparator

java.lang.Object
org.mule.runtime.extension.api.util.ParameterModelComparator
All Implemented Interfaces:
Comparator<org.mule.runtime.api.meta.model.parameter.ParameterModel>

public class ParameterModelComparator extends Object implements Comparator<org.mule.runtime.api.meta.model.parameter.ParameterModel>
A Comparator for sorting objects of type ParameterModel
  • Constructor Details

    • ParameterModelComparator

      public ParameterModelComparator(boolean infrastructureFirst)
      Creates a new instance
      Parameters:
      infrastructureFirst - whether infrastructure parameters should be at the beginning or the end
  • Method Details

    • compare

      public int compare(org.mule.runtime.api.meta.model.parameter.ParameterModel left, org.mule.runtime.api.meta.model.parameter.ParameterModel right)
      Specified by:
      compare in interface Comparator<org.mule.runtime.api.meta.model.parameter.ParameterModel>