程序包 me.magicall.db
类 FieldComparator<T>
java.lang.Object
me.magicall.db.FieldComparator<T>
- 类型参数:
T-
- 所有已实现的接口:
Comparator<T>
- 直接已知子类:
OneFieldComparator
一种比较器,指定对象参与排序的字段以及排序顺序(正序或逆序)。
- 作者:
- MaGiCalL
-
构造器概要
构造器 -
方法概要
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
构造器详细资料
-
FieldComparator
public FieldComparator()
-
-
方法详细资料
-
compare
- 指定者:
compare在接口中Comparator<T>
-
getValue
返回对象指定字段的值。- 参数:
o-fieldName-
-
getComparingFieldsNamesAndOrders
返回一个列表,列表的每个元素指定哪个字段参与比较排序,以及排序是正序还是倒序。 字段的权重由其在列表中的顺序确定,排在前面的权重高。- 返回:
-