public class ETEntry extends Object implements Cache.Entry<ETEntry>
Constructor and Description |
---|
ETEntry() |
Modifier and Type | Method and Description |
---|---|
void |
assume(ETEntry entry)
It has the object assume the state of the parameter instance.
|
int |
compareTo(ETEntry e) |
void |
empty()
It renders the entry empty.
|
byte |
getGeneration() |
long |
getKey() |
short |
getScore() |
long |
hashKey()
Returns a long integer hash code.
|
boolean |
isEmpty()
Determines whether the entry is to be considered void.
|
void |
set(long key,
short score,
byte generation) |
void |
setGeneration(byte generation) |
void |
setupKey()
XORs the data fields into the key.
|
void |
swap(ETEntry entry)
It swaps the states of the object and the parameter instance.
|
String |
toString() |
public long getKey()
public short getScore()
public byte getGeneration()
public void setGeneration(byte generation)
generation
- The age of the entry.public void set(long key, short score, byte generation)
key
- The 64 bit position hash key.score
- The evaluation score.generation
- The age of the entry.public void setupKey()
public long hashKey()
Cache.Entry
hashKey
in interface Cache.Entry<ETEntry>
public boolean isEmpty()
Cache.Entry
isEmpty
in interface Cache.Entry<ETEntry>
public void assume(ETEntry entry)
Cache.Entry
assume
in interface Cache.Entry<ETEntry>
entry
- The entry whose state is to be assumed.public void swap(ETEntry entry)
Cache.Entry
swap
in interface Cache.Entry<ETEntry>
entry
- The instance with which the entry on which the method is invoked is supposed to swap states.public void empty()
Cache.Entry
empty
in interface Cache.Entry<ETEntry>
public int compareTo(ETEntry e)
compareTo
in interface Comparable<ETEntry>
Copyright © 2020. All rights reserved.