T
- is the generic type of the delegate-object
.public abstract class AbstractHashKey<T> extends Object implements Serializable
object
as
hash-key
with external custom implementations of equals
and
hashCode
.Modifier and Type | Field and Description |
---|---|
private T |
delegate |
private int |
hashCode |
private static long |
serialVersionUID |
Modifier | Constructor and Description |
---|---|
protected |
AbstractHashKey()
The constructor for de-serialization in GWT.
|
|
AbstractHashKey(T object)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
T |
getDelegate()
This method gets the original object this hash-key delegates to.
|
protected abstract EqualsChecker<T> |
getEqualsChecker() |
protected abstract HashCodeFunction<T> |
getHashCodeFunction() |
int |
hashCode() |
String |
toString() |
private static final long serialVersionUID
private T delegate
private int hashCode
protected AbstractHashKey()
public AbstractHashKey(T object)
object
- is the delegate object
.public T getDelegate()
protected abstract EqualsChecker<T> getEqualsChecker()
EqualsChecker
to use by equals(Object)
.protected abstract HashCodeFunction<T> getHashCodeFunction()
HashCodeFunction
to use by hashCode()
.Copyright © 2001–2016 mmm-Team. All rights reserved.