本文整理汇总了Java中com.amazonaws.mturk.requester.Comparator.LessThan方法的典型用法代码示例。如果您正苦于以下问题:Java Comparator.LessThan方法的具体用法?Java Comparator.LessThan怎么用?Java Comparator.LessThan使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.amazonaws.mturk.requester.Comparator
的用法示例。
在下文中一共展示了Comparator.LessThan方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getQualificationComparator
import com.amazonaws.mturk.requester.Comparator; //导入方法依赖的package包/类
private Comparator getQualificationComparator(int qualNum) {
String qualComparator = VelocityUtil.doMerge(qualificationComparator[qualNum], inputMap);
if (qualComparator != null) {
qualComparator = qualComparator.trim().toLowerCase();
if ("lessthan".equals(qualComparator))
return Comparator.LessThan;
else if ("lessthanorequalto".equals(qualComparator))
return Comparator.LessThanOrEqualTo;
else if ("greaterthan".equals(qualComparator))
return Comparator.GreaterThan;
else if ("greaterthanorequalto".equals(qualComparator))
return Comparator.GreaterThanOrEqualTo;
else if ("equalto".equals(qualComparator))
return Comparator.EqualTo;
else if ("notequalto".equals(qualComparator))
return Comparator.NotEqualTo;
else if ("exists".equals(qualComparator))
return Comparator.Exists;
else {
log.info("Your configuration file provided an unrecognized comparator: " + qualComparator);
return null;
}
}
else {
return null;
}
}