com.sap.portal.obn.service

Class IOBNOperationMD.Comparators.FriendlyNameComparator

java.lang.Object
  extended by com.sap.portal.obn.service.IOBNOperationMD.Comparators.FriendlyNameComparator
All Implemented Interfaces:
Comparator
Enclosing interface:
IOBNOperationMD.Comparators

public static class IOBNOperationMD.Comparators.FriendlyNameComparator
extends Object
implements Comparator

Compares two objects implementing the IOBNOperationMD interface by their friendly names.

The friendly name that is used by the comparator is determined by the user locale.


Constructor Summary
IOBNOperationMD.Comparators.FriendlyNameComparator(Locale locale)
          A constructor that creates a Comparator for a specific locale.
 
Method Summary
 int compare(Object o1, Object o2)
          Compares two objects implementing the IOBNOperationMD interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

IOBNOperationMD.Comparators.FriendlyNameComparator

public IOBNOperationMD.Comparators.FriendlyNameComparator(Locale locale)
A constructor that creates a Comparator for a specific locale.

Parameters:
locale - the locale for determining the operation friendly name
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Compares two objects implementing the IOBNOperationMD interface. The comparison is based on the operations' friendly names.

Specified by:
compare in interface Comparator
Parameters:
o1 - first object
o2 - second object
Returns:
the result of the comparison
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-RUNTIME [sap.com] tc/ep/navigation/api api EP-PIN


Copyright 2011 SAP AG Complete Copyright Notice