Class LinkDetailComparator
- java.lang.Object
-
- org.silverpeas.core.util.comparator.AbstractComparator<C>
-
- org.silverpeas.core.util.comparator.AbstractComplexComparator<LinkDetail>
-
- org.silverpeas.core.mylinks.model.LinkDetailComparator
-
- All Implemented Interfaces:
Serializable
,Comparator<LinkDetail>
public class LinkDetailComparator extends AbstractComplexComparator<LinkDetail>
- Author:
- Yohann Chastagnier
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.silverpeas.core.util.comparator.AbstractComplexComparator
AbstractComplexComparator.StringWrapper, AbstractComplexComparator.ValueBuffer
-
-
Constructor Summary
Constructors Constructor Description LinkDetailComparator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AbstractComplexComparator.ValueBuffer
getValuesToCompare(LinkDetail link)
Value list to comparestatic List<LinkDetail>
sort(List<LinkDetail> links)
Easy way to apply this comparator on a list of links.-
Methods inherited from class org.silverpeas.core.util.comparator.AbstractComplexComparator
compare
-
Methods inherited from class org.silverpeas.core.util.comparator.AbstractComparator
compare, strictComparisonOnText
-
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
-
-
-
-
Method Detail
-
sort
public static List<LinkDetail> sort(List<LinkDetail> links)
Easy way to apply this comparator on a list of links.- Parameters:
links
- the links to sort.- Returns:
- the given list.
-
getValuesToCompare
protected AbstractComplexComparator.ValueBuffer getValuesToCompare(LinkDetail link)
Description copied from class:AbstractComplexComparator
Value list to compare- Specified by:
getValuesToCompare
in classAbstractComplexComparator<LinkDetail>
-
-