Package org.dspace.utils.servicemanager
Class ProviderStackComparator
- java.lang.Object
-
- org.dspace.utils.servicemanager.ProviderStackComparator
-
- All Implemented Interfaces:
Serializable
,Comparator<ProviderHolder<?>>
public final class ProviderStackComparator extends Object implements Comparator<ProviderHolder<?>>, Serializable
A Comparator for provider stacks. This is specially designed for sorting a list of ProviderHolders so it will unpack them and then do the typical sorting on them while properly handling the null cases.- Author:
- Aaron Zeckoski (azeckoski @ gmail.com)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description ProviderStackComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(ProviderHolder<?> ph0, ProviderHolder<?> ph1)
-
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
-
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
compare
public int compare(ProviderHolder<?> ph0, ProviderHolder<?> ph1)
- Specified by:
compare
in interfaceComparator<ProviderHolder<?>>
-
-