com.silverpeas.questionReply.control
Class QuestionRegexpComparator

java.lang.Object
  extended by com.silverpeas.questionReply.control.QuestionRegexpComparator
All Implemented Interfaces:
Comparator<Question>

public class QuestionRegexpComparator
extends Object
implements Comparator<Question>

Author:
ehugonnet

Method Summary
 int compare(Question question1, Question question2)
           
protected  int compareNumbers(List<Integer> bigList, List<Integer> smallList)
           
protected  List<Integer> extractNumber(String label)
           
static QuestionRegexpComparator getInstance()
           
 
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
 

Method Detail

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.