Package org.miaixz.bus.core.compare
Class LocaleCompare
- All Implemented Interfaces:
Serializable,Comparator<String>
- Direct Known Subclasses:
PinyinCompare
自定义语言环境 String 比较,可为自然语言文本构建搜索和排序例程。
- Since:
- Java 17+
- Author:
- Kimi Liu
- See Also:
-
Field Summary
Fields inherited from class org.miaixz.bus.core.compare.NullCompare
comparator, nullGreater -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.miaixz.bus.core.compare.NullCompare
compare, doCompare, 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, reversed, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
LocaleCompare
构造- Parameters:
nullGreater- 是否null在后desiredLocale- 语言环境
-