*** This class provides Binary Compatibility only, not Source Compatibility ***
Package com.sas.services.deployment
Class ServiceComparator
java.lang.Object
com.sas.services.deployment.ServiceComparator
- All Implemented Interfaces:
Comparator<DeployableService>
@SASScope("ALL")
@BinaryCompatibilityOnly
public class ServiceComparator
extends Object
implements Comparator<DeployableService>
Comparator for
DeployableService representations
of a foundation service.- Since:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal intcompare(DeployableService ds1, DeployableService ds2) Compares two objects that are of typeDeployableServicein an attempt to ascertain which one should be deployed first based upon their service dependencies.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
-
ServiceComparator
public ServiceComparator()
-
-
Method Details
-
compare
Compares two objects that are of typeDeployableServicein an attempt to ascertain which one should be deployed first based upon their service dependencies.- Specified by:
comparein interfaceComparator<DeployableService>- Parameters:
service1- Object of typeDeployableService.service2- Object of typeDeployableService.- Returns:
0if it doesn't matter which service should be deployed first,-1if service #1 should be deployed prior to service #2 or1if service #2 should be deployed prior to service #1.- See Also:
-