com.stratelia.silverpeas.contentManager
Class GSCCreationDateComparatorAsc

java.lang.Object
  extended by com.stratelia.silverpeas.contentManager.GSCCreationDateComparatorAsc
All Implemented Interfaces:
Comparator<GlobalSilverContent>

public class GSCCreationDateComparatorAsc
extends Object
implements Comparator<GlobalSilverContent>


Field Summary
static GSCCreationDateComparatorAsc comparator
           
 
Constructor Summary
GSCCreationDateComparatorAsc()
           
 
Method Summary
 int compare(GlobalSilverContent gsc1, GlobalSilverContent gsc2)
          A matching index entry is greater another if his score is higher.
 
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
 

Field Detail

comparator

public static final GSCCreationDateComparatorAsc comparator
Constructor Detail

GSCCreationDateComparatorAsc

public GSCCreationDateComparatorAsc()
Method Detail

compare

public int compare(GlobalSilverContent gsc1,
                   GlobalSilverContent gsc2)
A matching index entry is greater another if his score is higher. This result is reversed as we want a descending sort.

Specified by:
compare in interface Comparator<GlobalSilverContent>
Parameters:
gsc1 -
gsc2 -
Returns:


Copyright © 2016 Silverpeas. All Rights Reserved.