Class QuestionRegexpComparator
- java.lang.Object
-
- org.silverpeas.components.questionreply.service.QuestionRegexpComparator
-
- All Implemented Interfaces:
Comparator<Question>
public class QuestionRegexpComparator extends Object implements Comparator<Question>
- Author:
- ehugonnet
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
getInstance
public static QuestionRegexpComparator getInstance()
-
compare
public int compare(Question question1, Question question2)
- Specified by:
compare
in interfaceComparator<Question>
-
-