com.silverpeas.mydb.data.index
Class IndexElementComparator

java.lang.Object
  extended by com.silverpeas.mydb.data.index.IndexElementComparator
All Implemented Interfaces:
Comparator<IndexElement>

public class IndexElementComparator
extends Object
implements Comparator<IndexElement>

IndexElement comparator. Elements are sorted by their names if they are different, else sorted by their position index.

Author:
Antoine HEDIN

Constructor Summary
IndexElementComparator()
           
 
Method Summary
 int compare(IndexElement element1, IndexElement element2)
           
 
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
 

Constructor Detail

IndexElementComparator

public IndexElementComparator()
Method Detail

compare

public int compare(IndexElement element1,
                   IndexElement element2)
Specified by:
compare in interface Comparator<IndexElement>


Copyright © 2016 Silverpeas. All Rights Reserved.