javolution.util.function.Equalities Maven / Gradle / Ivy
The newest version!
package javolution.util.function;
import javolution.lang.Parallelizable;
import javolution.lang.Realtime;
import javolution.util.internal.comparator.ArrayComparatorImpl;
import javolution.util.internal.comparator.IdentityComparatorImpl;
import javolution.util.internal.comparator.LexicalCaseInsensitiveComparatorImpl;
import javolution.util.internal.comparator.LexicalComparatorImpl;
import javolution.util.internal.comparator.LexicalFastComparatorImpl;
import javolution.util.internal.comparator.StandardComparatorImpl;
import static javolution.lang.Realtime.Limit.*;
/**
* A set of useful equalities comparators.
*
* @author Jean-Marie Dautelle
* @version 6.0, July 21, 2013
*/
public class Equalities {
/**
* A standard object comparator (based on the object hashCode and equals
* methods). Comparisons either use the object natural order (which
* should be consistent with equals) or an empirical method
* (if the object does not implement {@link Comparable}).
*
*/
@Parallelizable
@Realtime(limit = UNKNOWN)
public static final Equality