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 | 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.
|
static <T> Equator<T> defaultEquator()
static <T> Comparator<T> defaultComparator()
int hash(T t)
boolean eq(T o1, T o2)
Copyright © 2017. All rights reserved.