Package org.glassfish.admingui.plugin
Class IntegrationPointComparator
- java.lang.Object
-
- 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. Seecompare(org.glassfish.admingui.connector.IntegrationPoint, org.glassfish.admingui.connector.IntegrationPoint)
for more details.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
IntegrationPointComparator()
Protected constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(IntegrationPoint ip1, IntegrationPoint ip2)
This method compares twoIntegrationPoint
s.static IntegrationPointComparator
getInstance()
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(IntegrationPoint ip1, IntegrationPoint ip2)
This method compares two
IntegrationPoint
s. It will first check theparentId
, then thepriority
if theparentId
s are equal. If the priorities happen to be equal as well, it will compare theid
s.- Specified by:
compare
in interfaceComparator<IntegrationPoint>
-
-