Class GSCCreationDateComparatorDesc
- java.lang.Object
-
- org.silverpeas.core.contribution.contentcontainer.content.GSCCreationDateComparatorDesc
-
- All Implemented Interfaces:
Comparator<GlobalSilverContent>
public class GSCCreationDateComparatorDesc extends Object implements Comparator<GlobalSilverContent>
-
-
Field Summary
Fields Modifier and Type Field Description static GSCCreationDateComparatorDesc
comparator
-
Constructor Summary
Constructors Constructor Description GSCCreationDateComparatorDesc()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(GlobalSilverContent gsc1, GlobalSilverContent gsc2)
This result is reversed as we want a descending sort.-
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
-
comparator
public static final GSCCreationDateComparatorDesc comparator
-
-
Method Detail
-
compare
public int compare(GlobalSilverContent gsc1, GlobalSilverContent gsc2)
This result is reversed as we want a descending sort.- Specified by:
compare
in interfaceComparator<GlobalSilverContent>
- Parameters:
gsc1
-gsc2
-- Returns:
-
-