Class DeployerComparator

java.lang.Object
com.github.fungal.impl.DeployerComparator
All Implemented Interfaces:
Serializable, Comparator<Deployer>

public class DeployerComparator extends Object implements Comparator<Deployer>, Serializable
DeploymentComparator sorts Deployer instances
Author:
Jesper Pedersen
See Also:
  • Method Details

    • compare

      public int compare(Deployer o1, Deployer o2)
      Compare
      Specified by:
      compare in interface Comparator<Deployer>
      Parameters:
      o1 - The first object
      o2 - The second object
      Returns:
      -1 if o1 should be invoked first, 1 if o2 should be invoked first, otherwise 0
    • hashCode

      public int hashCode()
      Hash code
      Overrides:
      hashCode in class Object
      Returns:
      The hash
    • equals

      public boolean equals(Object o)
      Equals
      Specified by:
      equals in interface Comparator<Deployer>
      Overrides:
      equals in class Object
      Parameters:
      o - The object
      Returns:
      True if equal; otherwise false