com.silverpeas.questionReply.control
Class QuestionRegexpComparator
java.lang.Object
  
com.silverpeas.questionReply.control.QuestionRegexpComparator
- All Implemented Interfaces: 
 - Comparator<Question>
 
public class QuestionRegexpComparator
- extends Object
- implements Comparator<Question>
  
- Author:
 
  - ehugonnet
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
getInstance
public static QuestionRegexpComparator getInstance()
 
 
compare
public int compare(Question question1,
                   Question question2)
- Specified by:
 compare in interface Comparator<Question>
 
 
extractNumber
protected List<Integer> extractNumber(String label)
 
 
compareNumbers
protected int compareNumbers(List<Integer> bigList,
                             List<Integer> smallList)
 
 
Copyright © 2016 Silverpeas. All Rights Reserved.