|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hd.d.pg2k.svrCore.vars.BasicVarMgr.MessageIDKey
private static final class BasicVarMgr.MessageIDKey
Immutable message ID suitable for use as a key in detecting duplicates. Has functional hashCode() and equals().
Does not contain the message or its content; only message meta-data to minimise memory footprint.
| Field Summary | |
|---|---|
(package private) SimpleVariableDefinition |
def
Variable definition/name; never null |
(package private) long |
timestamp
Message timestamp. |
(package private) int |
valueHash
Message value hash. |
| Constructor Summary | |
|---|---|
BasicVarMgr.MessageIDKey(long timestamp,
SimpleVariableDefinition def,
int valueHash)
Construct an instance. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Equality is based on all fields. |
int |
hashCode()
Hash is computed from the value hash and timestamp low-order bits. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
final long timestamp
final SimpleVariableDefinition def
final int valueHash
| Constructor Detail |
|---|
public BasicVarMgr.MessageIDKey(long timestamp,
SimpleVariableDefinition def,
int valueHash)
| Method Detail |
|---|
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
DHD Multimedia Gallery V1.57.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||