Package org.glassfish.admingui.plugin
Class IntegrationPointComparator
java.lang.Object
org.glassfish.admingui.plugin.IntegrationPointComparator
- All Implemented Interfaces:
Serializable,Comparator<org.glassfish.admingui.connector.IntegrationPoint>
public class IntegrationPointComparator
extends Object
implements Comparator<org.glassfish.admingui.connector.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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(org.glassfish.admingui.connector.IntegrationPoint ip1, org.glassfish.admingui.connector.IntegrationPoint ip2) This method compares twoIntegrationPoints.static IntegrationPointComparatorAccessor for thisComparator.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
IntegrationPointComparator
protected IntegrationPointComparator()Protected constructor. Use
getInstance()instead.
-
-
Method Details
-
getInstance
Accessor for this
Comparator. -
compare
public int compare(org.glassfish.admingui.connector.IntegrationPoint ip1, org.glassfish.admingui.connector.IntegrationPoint ip2) This method compares two
IntegrationPoints. It will first check theparentId, then thepriorityif theparentIds are equal. If the priorities happen to be equal as well, it will compare theids.- Specified by:
comparein interfaceComparator<org.glassfish.admingui.connector.IntegrationPoint>
-