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
IntegrationPointObjects. Seecompare(org.glassfish.admingui.connector.IntegrationPoint, org.glassfish.admingui.connector.IntegrationPoint)for more details.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedIntegrationPointComparator()Protected constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(org.glassfish.admingui.connector.IntegrationPoint ip1, org.glassfish.admingui.connector.IntegrationPoint ip2)This method compares twoIntegrationPoints.static IntegrationPointComparatorgetInstance()Accessor for thisComparator.-
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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
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(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>
-
-