***  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

public class ServiceComparator
implements java.util.Comparator

Comparator for DeployableService representations of a foundation service.

Since:
1.0

Constructor Summary
ServiceComparator()
           
 
Method Summary
 int compare(java.lang.Object service1, java.lang.Object service2)
          Compares two objects that are of type deployable service 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(java.lang.Object service1,
                         java.lang.Object service2)
Compares two objects that are of type deployable service in an attempt to ascertain which one should be deployed first based upon their service dependencies.

Specified by:
compare in interface java.util.Comparator
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.