Package com.github.fungal.impl
Class DeployerComparator
java.lang.Object
com.github.fungal.impl.DeployerComparator
- All Implemented Interfaces:
Serializable,Comparator<Deployer>
DeploymentComparator sorts Deployer instances
- Author:
- Jesper Pedersen
- See Also:
-
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Method Details
-
compare
Compare- Specified by:
comparein interfaceComparator<Deployer>- Parameters:
o1- The first objecto2- The second object- Returns:
-1if o1 should be invoked first,1if o2 should be invoked first, otherwise0
-
hashCode
public int hashCode()Hash code -
equals
Equals- Specified by:
equalsin interfaceComparator<Deployer>- Overrides:
equalsin classObject- Parameters:
o- The object- Returns:
- True if equal; otherwise false
-