public interface Equator<T>
defaultEquator()
tricks
the type system into using generic type parameters (correctly) with an enum.Modifier and Type | Interface and Description |
---|---|
static class |
Equator.Comp |
static class |
Equator.Equat |
Modifier and Type | Field and Description |
---|---|
static Comparator<Comparable<Object>> |
DEFAULT_COMPARATOR
Deprecated.
|
static ComparisonContext<Comparable<Object>> |
DEFAULT_CONTEXT
Deprecated.
|
static Equator<Object> |
DEFAULT_EQUATOR
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static <T> Comparator<T> |
defaultComparator() |
static <T> Equator<T> |
defaultEquator() |
boolean |
eq(T o1,
T o2)
Determines whether two objects are equal.
|
int |
hash(T t)
An integer digest used for very quick "can-equal" testing.
|
@Deprecated static final Equator<Object> DEFAULT_EQUATOR
@Deprecated static final Comparator<Comparable<Object>> DEFAULT_COMPARATOR
@Deprecated static final ComparisonContext<Comparable<Object>> DEFAULT_CONTEXT
static <T> Equator<T> defaultEquator()
static <T> Comparator<T> defaultComparator()
int hash(T t)
Copyright © 2016. All rights reserved.