org.mule.devkit.generation.studio.editor
Class VariableComparator

java.lang.Object
  extended by org.mule.devkit.generation.studio.editor.VariableComparator
All Implemented Interfaces:
Comparator<org.mule.devkit.model.Variable>

public class VariableComparator
extends Object
implements Comparator<org.mule.devkit.model.Variable>


Constructor Summary
VariableComparator()
           
 
Method Summary
 int compare(org.mule.devkit.model.Variable variable1, org.mule.devkit.model.Variable variable2)
          Compares two VariableElement using the following order: 1) strings 2) integers 3) booleans 4) enums 5) collections and maps For same types or types not listed here, order alphabetically.
 
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
 

Constructor Detail

VariableComparator

public VariableComparator()
Method Detail

compare

public int compare(org.mule.devkit.model.Variable variable1,
                   org.mule.devkit.model.Variable variable2)
Compares two VariableElement using the following order: 1) strings 2) integers 3) booleans 4) enums 5) collections and maps For same types or types not listed here, order alphabetically.

Specified by:
compare in interface Comparator<org.mule.devkit.model.Variable>


Copyright © 2010–2014 MuleSoft, Inc.. All rights reserved.