Add singleton ObjectToStringComparator.INSTANCE.

This commit is contained in:
Gary Gregory 2022-02-13 11:18:30 -05:00
parent 6a3dabbee0
commit 1151960efa
2 changed files with 10 additions and 0 deletions

View File

@ -119,6 +119,9 @@
<action dev="ggregory" type="add" due-to="Gary Gregory">
Add ListUtils.getFirst() and getLast().
</action>
<action dev="ggregory" type="add" due-to="Gary Gregory">
Add singleton ObjectToStringComparator.INSTANCE.
</action>
<!-- UPDATE -->
<action type="update" dev="kinow" due-to="Dependabot">
Bump actions/setup-java from v1.4.0 to v2 #174 #177 #186 #224.

View File

@ -22,6 +22,13 @@ import java.util.Comparator;
public final class ObjectToStringComparator implements Comparator<Object>, Serializable {
/**
* Singleton instance.
*
* @since 4.5
*/
public final ObjectToStringComparator INSTANCE = new ObjectToStringComparator();
private static final long serialVersionUID = 1L;
@Override