Package org.aoju.bus.core.compare
Class PropertyCompare<T>
java.lang.Object
org.aoju.bus.core.compare.NullCompare<T>
org.aoju.bus.core.compare.FuncCompare<T>
org.aoju.bus.core.compare.PropertyCompare<T>
- Type Parameters:
T- 被比较的Bean
- All Implemented Interfaces:
Serializable,Comparator<T>
Bean属性排序器 支持读取Bean多层次下的属性
- Since:
- Java 17+
- Author:
- Kimi Liu
- See Also:
-
Field Summary
Fields inherited from class org.aoju.bus.core.compare.NullCompare
comparator, nullGreater -
Constructor Summary
ConstructorsConstructorDescriptionPropertyCompare(String property) 构造PropertyCompare(String property, boolean isNullGreater) 构造 -
Method Summary
Methods inherited from class org.aoju.bus.core.compare.FuncCompare
doCompareMethods inherited from class org.aoju.bus.core.compare.NullCompare
compare, reversed, thenComparingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
PropertyCompare
-
PropertyCompare
构造- Parameters:
property- 属性名isNullGreater- null值是否排在后(从小到大排序)
-