com.sap.portal.obn.service

Class IOBNImplementationMD.Comparators.FriendlyNameComparator

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

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

Compares two objects implementing the IOBNImplementationMD interface by their friendly names.
The friendly name that is used by the comparator is determined by the user locale.


Constructor Summary
IOBNImplementationMD.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 IOBNImplementationMD 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

IOBNImplementationMD.Comparators.FriendlyNameComparator

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

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

compare

public int compare(Object o1,
                   Object o2)
Compares two objects implementing the IOBNImplementationMD interface. The comparison is based on the operation implementations friendly names.

Specified by:
compare in interface Comparator
Parameters:
o1 - first object
o2 - second object
Returns:
the result of the camparison
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