All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.softicar.platform.common.core.comparator.Comparators Maven / Gradle / Ivy

Go to download

The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.

There is a newer version: 50.0.0
Show newest version
package com.softicar.platform.common.core.comparator;

import java.util.Comparator;

/**
 * Utility methods for {@link Comparator}.
 *
 * @author Oliver Richers
 */
public class Comparators {

	/**
	 * Returns a null-safe natural order {@link Comparator}.
	 * 

* This is the same as * *

	 * {@code Comparator.thenComparing(Comparator.naturalOrder())}.
	 * 
* * @param * @return the respective {@link Comparator} */ public static > Comparator naturalOrderNullsFirst() { return Comparator.nullsFirst(Comparator.naturalOrder()); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy