***  This class provides Binary Compatibility only, not Source Compatibility  ***

com.sas.services.deployment
Class ServiceComparator

com.sas.services.deployment.ServiceComparator
All Implemented Interfaces:
java.util.Comparator<DeployableService>

public class ServiceComparator
implements java.util.Comparator<DeployableService>

Comparator for DeployableService representations of a foundation service.

Since:
1.0

Constructor Summary
ServiceComparator()
           
 
Method Summary
 int compare(DeployableService ds1, DeployableService ds2)
          Compares two objects that are of type DeployableService in an attempt to ascertain which one should be deployed first based upon their service dependencies.
 

Constructor Detail

ServiceComparator

public ServiceComparator()
Method Detail

compare

public final int compare(DeployableService ds1,
                         DeployableService ds2)
Compares two objects that are of type DeployableService in an attempt to ascertain which one should be deployed first based upon their service dependencies.

Specified by:
compare in interface java.util.Comparator<DeployableService>
Parameters:
service1 - Object of type DeployableService.
service2 - Object of type DeployableService.
Returns:
0 if it doesn't matter which service should be deployed first, -1 if service #1 should be deployed prior to service #2 or 1 if service #2 should be deployed prior to service #1.
See Also:
Comparator.compare(Object, Object)

***  This class provides Binary Compatibility only, not Source Compatibility  ***




Copyright © 2009 SAS Institute Inc. All Rights Reserved.