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 Summary
ConstructorsConstructorDescriptionParameterModelComparator(boolean infrastructureFirst) Creates a new instance -
Method Summary
Modifier and TypeMethodDescriptionintcompare(org.mule.runtime.api.meta.model.parameter.ParameterModel left, org.mule.runtime.api.meta.model.parameter.ParameterModel right) 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
-
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:
comparein interfaceComparator<org.mule.runtime.api.meta.model.parameter.ParameterModel>
-