T
- is the generic type of the delegate-object
.public class CustomHashKey<T> extends AbstractHashKey<T>
equals
and hashCode
.Modifier and Type | Field and Description |
---|---|
private EqualsChecker<T> |
equalsChecker |
private HashCodeFunction<T> |
hashCodeFunction |
private static long |
serialVersionUID |
Modifier | Constructor and Description |
---|---|
protected |
CustomHashKey()
The constructor for de-serialization in GWT.
|
|
CustomHashKey(T object,
EqualsChecker<T> equalsChecker)
The constructor.
|
|
CustomHashKey(T object,
EqualsChecker<T> equalsChecker,
HashCodeFunction<T> hashCodeFunction)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected EqualsChecker<T> |
getEqualsChecker() |
protected HashCodeFunction<T> |
getHashCodeFunction() |
equals, getDelegate, hashCode, toString
private static final long serialVersionUID
private EqualsChecker<T> equalsChecker
private HashCodeFunction<T> hashCodeFunction
protected CustomHashKey()
public CustomHashKey(T object, EqualsChecker<T> equalsChecker)
object
- is the delegate object
.equalsChecker
- is the EqualsChecker
used to customize AbstractHashKey.equals(Object)
.public CustomHashKey(T object, EqualsChecker<T> equalsChecker, HashCodeFunction<T> hashCodeFunction)
object
- is the delegate object
.equalsChecker
- is the EqualsChecker
used to customize AbstractHashKey.equals(Object)
.hashCodeFunction
- is the HashCodeFunction
used to customize AbstractHashKey.hashCode()
.protected EqualsChecker<T> getEqualsChecker()
getEqualsChecker
in class AbstractHashKey<T>
EqualsChecker
to use by AbstractHashKey.equals(Object)
.protected HashCodeFunction<T> getHashCodeFunction()
getHashCodeFunction
in class AbstractHashKey<T>
HashCodeFunction
to use by AbstractHashKey.hashCode()
.Copyright © 2001–2016 mmm-Team. All rights reserved.