org.glassfish.admingui.plugin
Class IntegrationPointComparator

java.lang.Object
  extended by org.glassfish.admingui.plugin.IntegrationPointComparator
All Implemented Interfaces:
Serializable, Comparator<IntegrationPoint>

public class IntegrationPointComparator
extends Object
implements Comparator<IntegrationPoint>, Serializable

This class compares two IntegrationPoint Objects. See compare(org.glassfish.admingui.connector.IntegrationPoint, org.glassfish.admingui.connector.IntegrationPoint) for more details.

See Also:
Serialized Form

Constructor Summary
protected IntegrationPointComparator()
           Protected constructor.
 
Method Summary
 int compare(IntegrationPoint ip1, IntegrationPoint ip2)
           This method compares two IntegrationPoints.
static IntegrationPointComparator getInstance()
           Accessor for this Comparator.
 
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

IntegrationPointComparator

protected IntegrationPointComparator()

Protected constructor. Use getInstance() instead.

Method Detail

getInstance

public static IntegrationPointComparator getInstance()

Accessor for this Comparator.


compare

public int compare(IntegrationPoint ip1,
                   IntegrationPoint ip2)

This method compares two IntegrationPoints. It will first check the parentId, then the priority if the parentIds are equal. If the priorities happen to be equal as well, it will compare the ids.

Specified by:
compare in interface Comparator<IntegrationPoint>


Copyright © 2012. All Rights Reserved.