Class CategoryDetailComparator
- java.lang.Object
-
- org.silverpeas.core.util.comparator.AbstractComparator<C>
-
- org.silverpeas.core.util.comparator.AbstractComplexComparator<CategoryDetail>
-
- org.silverpeas.core.mylinks.model.CategoryDetailComparator
-
- All Implemented Interfaces:
Serializable
,Comparator<CategoryDetail>
public class CategoryDetailComparator extends AbstractComplexComparator<CategoryDetail>
- Author:
- silveryocha
- 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 CategoryDetailComparator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AbstractComplexComparator.ValueBuffer
getValuesToCompare(CategoryDetail category)
Value list to comparestatic List<CategoryDetail>
sort(List<CategoryDetail> categories)
Easy way to apply this comparator on a list of category.-
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<CategoryDetail> sort(List<CategoryDetail> categories)
Easy way to apply this comparator on a list of category.- Parameters:
categories
- the categories to sort.- Returns:
- the given list.
-
getValuesToCompare
protected AbstractComplexComparator.ValueBuffer getValuesToCompare(CategoryDetail category)
Description copied from class:AbstractComplexComparator
Value list to compare- Specified by:
getValuesToCompare
in classAbstractComplexComparator<CategoryDetail>
-
-