public class Equalities extends Object
A set of useful equalities comparators.
Modifier and Type | Field and Description |
---|---|
static Equality<Object> |
ARRAY
A content array comparator.
|
static Equality<Object> |
IDENTITY
A comparator for which instances are only equals to themselves.
|
static Equality<CharSequence> |
LEXICAL
A lexicographic comparator for any
CharSequence . |
static Equality<CharSequence> |
LEXICAL_CASE_INSENSITIVE
A case insensitive lexicographic comparator for any
CharSequence . |
static Equality<CharSequence> |
LEXICAL_FAST
An optimized lexical comparator for any
CharSequence taking
a sample of few characters instead of the whole character sequence to
calculate the hash code (still equality comparison checks all characters). |
static Equality<Object> |
STANDARD
A standard object comparator (based on the object hashCode and equals
methods).
|
@Parallelizable @Realtime(limit=UNKNOWN) public static final Equality<Object> STANDARD
Comparable
).@Parallelizable @Realtime(limit=CONSTANT) public static final Equality<Object> IDENTITY
==
)
is used.@Parallelizable @Realtime(limit=LINEAR) public static final Equality<Object> ARRAY
standard
comparator is used for non-array elements.@Parallelizable @Realtime(limit=LINEAR) public static final Equality<CharSequence> LEXICAL
CharSequence
.@Parallelizable @Realtime(limit=LINEAR) public static final Equality<CharSequence> LEXICAL_CASE_INSENSITIVE
CharSequence
.@Parallelizable @Realtime(limit=LINEAR) public static final Equality<CharSequence> LEXICAL_FAST
CharSequence
taking
a sample of few characters instead of the whole character sequence to
calculate the hash code (still equality comparison checks all characters).Copyright © 2005-2013 Javolution. All Rights Reserved.