Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.skinmanager
Class BundleComparator

java.lang.Object
  extended by net.java.sip.communicator.plugin.skinmanager.BundleComparator
All Implemented Interfaces:
Comparator<org.osgi.framework.Bundle>

public class BundleComparator
extends Object
implements Comparator<org.osgi.framework.Bundle>

Comparator for bundle array sort

Author:
ROTH Damien

Constructor Summary
BundleComparator()
           
 
Method Summary
 int compare(org.osgi.framework.Bundle arg0, org.osgi.framework.Bundle arg1)
          Compares the bundles using their "Bundle-Name"s.
 
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

BundleComparator

public BundleComparator()
Method Detail

compare

public int compare(org.osgi.framework.Bundle arg0,
                   org.osgi.framework.Bundle arg1)
Compares the bundles using their "Bundle-Name"s.

Specified by:
compare in interface Comparator<org.osgi.framework.Bundle>
Parameters:
arg0 - the first bundle to compare
arg1 - the second bundle to compare
Returns:
the result of the string comparison between the names of the two bundles

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.